Lines Matching refs:mutexattr
104 pthread_mutexattr_t mutexattr;
109 if (pthread_mutexattr_init(&mutexattr) != 0) {
110 printf("Failed to init mutexattr\n");
112 if (pthread_mutexattr_setrobust_np(&mutexattr, PTHREAD_MUTEX_ROBUST_NP)
114 printf("Can't set mutexattr robust\n");
116 if (pthread_mutexattr_getrobust_np(&mutexattr, &robust) != 0) {
117 printf("Can't get mutexattr robust\n");
119 printf("robust in mutexattr is %d\n", robust);
128 if ((ret = pthread_mutex_init(mutexes[m], &mutexattr))) {
158 ("Your system doesn't support the pthread robust mutexattr APIs\n");