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

Lines Matching refs:mx

112   pthread_mutex_t mx;
134 mx = *mutex;
135 kind = mx->kind;
139 if (mx->kind == PTHREAD_MUTEX_NORMAL)
142 (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx,
146 (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx,
149 if (0 != (result = ptw32_timed_eventwait (mx->event, abstime)))
161 (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx,
165 mx->recursive_count = 1;
166 mx->ownerThread = self;
170 if (pthread_equal (mx->ownerThread, self))
172 if (mx->kind == PTHREAD_MUTEX_RECURSIVE)
174 mx->recursive_count++;
184 (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx,
187 if (0 != (result = ptw32_timed_eventwait (mx->event, abstime)))
193 mx->recursive_count = 1;
194 mx->ownerThread = self;
206 ptw32_robust_state_t* statePtr = &mx->robustNode->stateInconsistent;
223 (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx,
228 (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx,
231 if (0 != (result = ptw32_timed_eventwait (mx->event, abstime)))
241 SetEvent(mx->event);
262 (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx,
266 mx->recursive_count = 1;
275 if (pthread_equal (mx->ownerThread, self))
279 mx->recursive_count++;
290 (PTW32_INTERLOCKED_LONGPTR) &mx->lock_idx,
293 if (0 != (result = ptw32_timed_eventwait (mx->event, abstime)))
305 SetEvent(mx->event);
310 mx->recursive_count = 1;