Lines Matching refs:futex
25 __lll_lock_wait_private (int *futex) in __lll_lock_wait_private() argument
27 if (atomic_load_relaxed (futex) == 2) in __lll_lock_wait_private()
28 goto futex; in __lll_lock_wait_private()
30 while (atomic_exchange_acquire (futex, 2) != 0) in __lll_lock_wait_private()
32 futex: in __lll_lock_wait_private()
33 LIBC_PROBE (lll_lock_wait_private, 1, futex); in __lll_lock_wait_private()
34 futex_wait ((unsigned int *) futex, 2, LLL_PRIVATE); /* Wait if *futex == 2. */ in __lll_lock_wait_private()
40 __lll_lock_wait (int *futex, int private) in libc_hidden_def()
42 if (atomic_load_relaxed (futex) == 2) in libc_hidden_def()
43 goto futex; in libc_hidden_def()
45 while (atomic_exchange_acquire (futex, 2) != 0) in libc_hidden_def()
47 futex: in libc_hidden_def()
48 LIBC_PROBE (lll_lock_wait, 1, futex); in libc_hidden_def()
49 futex_wait ((unsigned int *) futex, 2, private); /* Wait if *futex == 2. */ in libc_hidden_def()
55 __lll_lock_wake_private (int *futex) in libc_hidden_def()
57 lll_futex_wake (futex, 1, LLL_PRIVATE); in libc_hidden_def()
62 __lll_lock_wake (int *futex, int private) in libc_hidden_def()
64 lll_futex_wake (futex, 1, private); in libc_hidden_def()