互斥锁属性 (Mutex Attributes) BACKWARDFORWARD


    表 0.4 互斥锁属性

 


name和Type    特征检测宏            值
int protocol    _POSIX_THREAD_PRIO_INHERIT,   PTHREAD_PRIO_NONE,          _POSIX_THREAD_PRIO_PROTECT    PTHREAD_PRIO_PROTECT,                      PTHREAD_PRIO_INHERIT int pshared     _POXIX_THREAD_PROCESS_SHARED   PTHREAD_PROCESS_SHARED,                     PTHREAD_PROCESS_PRIVAT int prioceiling   _POSIX_THREAD_PRIO_PROTECT     POSIX.1b,第十三节

int pthread_mutexattr_init( pthread_mutexattr_t *attr );
      初始化一个互斥锁属性对象。   
      错误  ENOMEM

int pthread_mutexattr_destroy( pthread_mutexattr_t *attr );
      毁坏一个互斥锁属性对象。   
      错误  EINVAL


Copyright: NPACT BACKWARDFORWARD