pthreads: Move pthread_once from sched/pthreads to libc/pthreads. pthread_once just coordinates other OS interface calls but is not a fundamental OS interface and, hence, does not belong within the OS.

This commit is contained in:
Gregory Nutt
2017-06-14 07:30:49 -06:00
parent 8ae5450268
commit 557fd6504f
8 changed files with 11 additions and 14 deletions
-1
View File
@@ -93,7 +93,6 @@
"pthread_mutex_trylock","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_mutex_t*"
"pthread_mutex_unlock","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_mutex_t*"
"pthread_mutex_consistent","pthread.h","!defined(CONFIG_DISABLE_PTHREAD) && !defined(CONFIG_PTHREAD_MUTEX_UNSAFE)","int","FAR pthread_mutex_t*"
"pthread_once","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_once_t*","CODE void (*)(void)"
"pthread_setaffinity_np","pthread.h","!defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_SMP)","int","pthread_t","size_t","FAR const cpu_set_t*"
"pthread_setschedparam","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","pthread_t","int","FAR const struct sched_param*"
"pthread_setschedprio","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","pthread_t","int"
1 _exit unistd.h void int
93 pthread_mutex_trylock pthread.h !defined(CONFIG_DISABLE_PTHREAD) int FAR pthread_mutex_t*
94 pthread_mutex_unlock pthread.h !defined(CONFIG_DISABLE_PTHREAD) int FAR pthread_mutex_t*
95 pthread_mutex_consistent pthread.h !defined(CONFIG_DISABLE_PTHREAD) && !defined(CONFIG_PTHREAD_MUTEX_UNSAFE) int FAR pthread_mutex_t*
pthread_once pthread.h !defined(CONFIG_DISABLE_PTHREAD) int FAR pthread_once_t*
96 pthread_setaffinity_np pthread.h !defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_SMP) int pthread_t
97 pthread_setschedparam pthread.h !defined(CONFIG_DISABLE_PTHREAD) int pthread_t
98 pthread_setschedprio pthread.h !defined(CONFIG_DISABLE_PTHREAD) int pthread_t