Home | History | Annotate | Download | only in pthreads-win32

Lines Matching refs:mx

45   pthread_mutex_t mx;
76 mx = (pthread_mutex_t) calloc (1, sizeof (*mx));
78 if (mx == NULL)
84 mx->lock_idx = 0;
85 mx->recursive_count = 0;
86 mx->robustNode = NULL;
89 mx->kind = PTHREAD_MUTEX_DEFAULT;
93 mx->kind = (*attr)->kind;
103 mx->kind = -mx->kind - 1;
105 mx->robustNode = (ptw32_robust_node_t*) malloc(sizeof(ptw32_robust_node_t));
106 mx->robustNode->stateInconsistent = PTW32_ROBUST_CONSISTENT;
107 mx->robustNode->mx = mx;
108 mx->robustNode->next = NULL;
109 mx->robustNode->prev = NULL;
113 mx->ownerThread.p = NULL;
115 mx->event = CreateEvent (NULL, PTW32_FALSE, /* manual reset = No */
119 if (0 == mx->event)
122 free (mx);
123 mx = NULL;
127 *mutex = mx;