Searched refs:unlocked (Results 1 - 1 of 1) sorted by relevance

/bionic/libc/bionic/
H A Dpthread.c780 * 0 for unlocked
1032 * 0 (unlocked, no contention)
1044 const int unlocked = shared | MUTEX_STATE_BITS_UNLOCKED; local
1047 * The common case is an unlocked mutex, so we begin by trying to
1052 if (__bionic_cmpxchg(unlocked, locked_uncontended, &mutex->value) != 0) {
1070 while (__bionic_swap(locked_contended, &mutex->value) != unlocked)
1124 * eventually wake will find an unlocked mutex and will execute.
1205 /* First, if the mutex is unlocked, try to quickly acquire it.
1221 /* if the mutex is unlocked, its value should be 'mtype' and
1225 * unlocked
1453 const int unlocked = shared | MUTEX_STATE_BITS_UNLOCKED; local
[all...]

Completed in 30 milliseconds