mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
pthreads: Move pthread_cond_init and pthread_cond_destory from sched/pthreads to libc/pthreads. This just coordinate other OS interface calls but are not a fundamental OS interfaces and, hence, do not belong within the OS.
This commit is contained in:
+18
-20
@@ -401,29 +401,27 @@
|
||||
# define SYS_pthread_barrier_wait (__SYS_pthread+2)
|
||||
# define SYS_pthread_cancel (__SYS_pthread+3)
|
||||
# define SYS_pthread_cond_broadcast (__SYS_pthread+4)
|
||||
# define SYS_pthread_cond_destroy (__SYS_pthread+5)
|
||||
# define SYS_pthread_cond_init (__SYS_pthread+6)
|
||||
# define SYS_pthread_cond_signal (__SYS_pthread+7)
|
||||
# define SYS_pthread_cond_wait (__SYS_pthread+8)
|
||||
# define SYS_pthread_create (__SYS_pthread+9)
|
||||
# define SYS_pthread_detach (__SYS_pthread+10)
|
||||
# define SYS_pthread_exit (__SYS_pthread+11)
|
||||
# define SYS_pthread_getschedparam (__SYS_pthread+12)
|
||||
# define SYS_pthread_getspecific (__SYS_pthread+13)
|
||||
# define SYS_pthread_join (__SYS_pthread+14)
|
||||
# define SYS_pthread_key_create (__SYS_pthread+15)
|
||||
# define SYS_pthread_key_delete (__SYS_pthread+16)
|
||||
# define SYS_pthread_mutex_destroy (__SYS_pthread+17)
|
||||
# define SYS_pthread_mutex_init (__SYS_pthread+18)
|
||||
# define SYS_pthread_mutex_lock (__SYS_pthread+19)
|
||||
# define SYS_pthread_mutex_trylock (__SYS_pthread+20)
|
||||
# define SYS_pthread_mutex_unlock (__SYS_pthread+21)
|
||||
# define SYS_pthread_cond_signal (__SYS_pthread+5)
|
||||
# define SYS_pthread_cond_wait (__SYS_pthread+6)
|
||||
# define SYS_pthread_create (__SYS_pthread+7)
|
||||
# define SYS_pthread_detach (__SYS_pthread+8)
|
||||
# define SYS_pthread_exit (__SYS_pthread+9)
|
||||
# define SYS_pthread_getschedparam (__SYS_pthread+10)
|
||||
# define SYS_pthread_getspecific (__SYS_pthread+11)
|
||||
# define SYS_pthread_join (__SYS_pthread+12)
|
||||
# define SYS_pthread_key_create (__SYS_pthread+13)
|
||||
# define SYS_pthread_key_delete (__SYS_pthread+14)
|
||||
# define SYS_pthread_mutex_destroy (__SYS_pthread+15)
|
||||
# define SYS_pthread_mutex_init (__SYS_pthread+16)
|
||||
# define SYS_pthread_mutex_lock (__SYS_pthread+17)
|
||||
# define SYS_pthread_mutex_trylock (__SYS_pthread+18)
|
||||
# define SYS_pthread_mutex_unlock (__SYS_pthread+19)
|
||||
|
||||
#ifndef CONFIG_PTHREAD_MUTEX_UNSAFE
|
||||
# define SYS_pthread_mutex_consistent (__SYS_pthread+22)
|
||||
# define __SYS_pthread_setschedparam (__SYS_pthread+23)
|
||||
# define SYS_pthread_mutex_consistent (__SYS_pthread+20)
|
||||
# define __SYS_pthread_setschedparam (__SYS_pthread+21)
|
||||
#else
|
||||
# define __SYS_pthread_setschedparam (__SYS_pthread+22)
|
||||
# define __SYS_pthread_setschedparam (__SYS_pthread+20)
|
||||
#endif
|
||||
|
||||
# define SYS_pthread_setschedparam (__SYS_pthread_setschedparam+0)
|
||||
|
||||
Reference in New Issue
Block a user