Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 786 Bytes

互斥锁.md

File metadata and controls

18 lines (17 loc) · 786 Bytes

###类型 pthread_mutex_t ###互斥锁基本操作

函数 描述
[[pthread_mutex_init pthread_mutex_init]]
[[pthread_mutex_lock pthread_mutex_lock]]
[[pthread_mutex_unlock pthread_mutex_unlock]]
[[pthread_mutex_trylock pthread_mutex_trylock]]
[[pthread_mutex_destroy pthread_mutex_destroy]]

###互斥锁属性的基本操作

函数 描述
[[pthread_mutexattr_init pthread_mutexattr_init]]
[[pthread_mutexattr_destroy pthread_mutexattr_destroy]]
[[pthread_mutexattr_settype pthread_mutexattr_settype]]
[[pthread_mutexattr_gettype pthread_mutexattr_gettype]]