Lines Matching refs:mutexAttr
71 int pthread_mutexattr_init(pthread_mutexattr_t *mutexAttr) in pthread_mutexattr_init() argument
73 if (mutexAttr == NULL) { in pthread_mutexattr_init()
77 mutexAttr->type = PTHREAD_MUTEX_DEFAULT; in pthread_mutexattr_init()
102 int pthread_mutexattr_settype(pthread_mutexattr_t *mutexAttr, int type) in pthread_mutexattr_settype() argument
104 if (mutexAttr == NULL) { in pthread_mutexattr_settype()
113 mutexAttr->type = (UINT8)((mutexAttr->type & ~MUTEXATTR_TYPE_MASK) | (UINT32)type); in pthread_mutexattr_settype()
118 int pthread_mutexattr_destroy(pthread_mutexattr_t *mutexAttr) in pthread_mutexattr_destroy() argument
120 if (mutexAttr == NULL) { in pthread_mutexattr_destroy()
124 (VOID)memset_s(mutexAttr, sizeof(pthread_mutexattr_t), 0, sizeof(pthread_mutexattr_t)); in pthread_mutexattr_destroy()
130 int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexAttr) in pthread_mutex_init() argument
144 if (mutexAttr == NULL) { in pthread_mutex_init()
147 useAttr = *mutexAttr; in pthread_mutex_init()