Lines Matching defs:mutex
40 barrier->mutex = 0;
49 barrier_lock(__haiku_std_int32* mutex, uint32 flags)
51 const int32 oldValue = atomic_test_and_set((int32*)mutex, B_USER_MUTEX_LOCKED, 0);
55 error = _kern_mutex_lock((int32*)mutex, NULL, flags, 0);
66 barrier_unlock(__haiku_std_int32* mutex, uint32 flags)
68 int32 oldValue = atomic_and((int32*)mutex,
71 _kern_mutex_unblock((int32*)mutex, flags);
83 status_t status = barrier_lock(&barrier->mutex, flags);
87 barrier_unlock(&barrier->mutex, flags);
105 // We are the last one in. Lock the barrier mutex.
106 barrier_lock(&barrier->mutex, mutexFlags);
112 // Return with the barrier mutex still locked, as waiter_count < 0.
128 barrier_unlock(&barrier->mutex, mutexFlags);