Lines Matching defs:MUTEX_OWNER
77 #define MUTEX_OWNER(x) ((uintptr_t)(x) & MUTEX_THREAD)
192 MUTEX_OWNER(ptm->ptm_owner) == 0);
260 thread = (pthread_t)MUTEX_OWNER(owner);
290 if (MUTEX_OWNER(owner) == (uintptr_t)self) {
310 if (MUTEX_OWNER(owner) == 0) {
322 } else if (MUTEX_OWNER(owner) != (uintptr_t)self) {
325 if (MUTEX_OWNER(owner) == 0) {
355 if (MUTEX_OWNER(ptm->ptm_owner) == 0) {
417 if (MUTEX_OWNER(val) == 0) {
427 if (MUTEX_OWNER(val) == (uintptr_t)self) {
460 bool weown = (MUTEX_OWNER(val) == (uintptr_t)self);
505 if (MUTEX_OWNER(newval) == 0 && ptm->ptm_waiters != NULL) {
707 MUTEX_OWNER(ptm->ptm_owner) != (uintptr_t)self)) {
768 return MUTEX_OWNER(ptm->ptm_owner) == (uintptr_t)pthread__self();
775 return (pthread_t)MUTEX_OWNER(ptm->ptm_owner);