线程操作接口汇总
/usr/include/pthread.h 整理的线程操作接口如下,方便查找。
线程管理相关
pthread_create
pthread_exit
pthread_join
pthread_tryjoin_np
pthread_timedjoin_np
pthread_detach
pthread_self
pthread_equal
pthread_atfork
线程属性相关
pthread_attr_init
pthread_attr_destroy
pthread_attr_getdetachstate
pthread_attr_setdetachstate
pthread_attr_getguardsize
pthread_attr_setguardsize
pthread_attr_getschedparam
pthread_attr_setschedparam
pthread_attr_getschedpolicy
pthread_attr_setschedpolicy
pthread_attr_getinheritsched
pthread_attr_setinheritsched
pthread_attr_getscope
pthread_attr_setscope
pthread_attr_getstackaddr
pthread_attr_setstackaddr
pthread_attr_getstacksize
pthread_attr_setstacksize
pthread_attr_getstack
pthread_attr_setstack
pthread_attr_setaffinity_np
pthread_attr_getaffinity_np
pthread_getattr_default_np
pthread_setattr_default_np
pthread_getattr_np
pthread_setschedparam
pthread_getschedparam
pthread_setschedprio
pthread_getname_np
pthread_setname_np
pthread_getconcurrency
pthread_setconcurrency
pthread_yield
pthread_setaffinity_np
pthread_getaffinity_np
pthread_once
pthread_setcancelstate
pthread_setcanceltype
pthread_cancel
pthread_testcancel
线程同步相关
pthread_mutex_init
pthread_mutex_destroy
pthread_mutex_trylock
pthread_mutex_lock
pthread_mutex_timedlock
pthread_mutex_unlock
pthread_mutex_getprioceiling
pthread_mutex_setprioceiling
pthread_mutex_consistent
pthread_mutex_consistent_np
pthread_mutexattr_init
pthread_mutexattr_destroy
pthread_mutexattr_getpshared
pthread_mutexattr_setpshared
pthread_mutexattr_gettype
pthread_mutexattr_settype
pthread_mutexattr_getprotocol
pthread_mutexattr_setprotocol
pthread_mutexattr_getprioceiling
pthread_mutexattr_setprioceiling
pthread_mutexattr_getrobust
pthread_mutexattr_getrobust_np
pthread_mutexattr_setrobust
pthread_mutexattr_setrobust_np
pthread_rwlock_init
pthread_rwlock_destroy
pthread_rwlock_rdlock
pthread_rwlock_tryrdlock
pthread_rwlock_timedrdlock
pthread_rwlock_wrlock
pthread_rwlock_trywrlock
pthread_rwlock_timedwrlock
pthread_rwlock_unlock
pthread_rwlockattr_init
pthread_rwlockattr_destroy
pthread_rwlockattr_getpshared
pthread_rwlockattr_setpshared
pthread_rwlockattr_getkind_np
pthread_rwlockattr_setkind_np
pthread_cond_init
pthread_cond_destroy
pthread_cond_signal
pthread_cond_broadcast
pthread_cond_wait
pthread_cond_timedwait
pthread_condattr_init
pthread_condattr_destroy
pthread_condattr_getpshared
pthread_condattr_setpshared
pthread_condattr_getclock
pthread_condattr_setclock
pthread_spin_init
pthread_spin_destroy
pthread_spin_lock
pthread_spin_trylock
pthread_spin_unlock
pthread_barrier_init
pthread_barrier_destroy
pthread_barrier_wait
pthread_barrierattr_init
pthread_barrierattr_destroy
pthread_barrierattr_getpshared
pthread_barrierattr_setpshared
pthread_key_create
pthread_key_delete
pthread_getspecific
pthread_setspecific
pthread_getcpuclockid