Lines Matching refs:current
24 int current = a_cas(l, 0, INT_MIN + 1); in __lock() local
26 if (!current) return; in __lock()
29 if (current < 0) current -= INT_MIN + 1; in __lock()
31 int val = a_cas(l, current, INT_MIN + (current + 1)); in __lock()
32 if (val == current) return; in __lock()
33 current = val; in __lock()
36 current = a_fetch_add(l, 1) + 1; in __lock()
43 if (current < 0) { in __lock()
44 __futexwait(l, current, 1); in __lock()
45 current -= INT_MIN + 1; in __lock()
48 int val = a_cas(l, current, INT_MIN + current); in __lock()
49 if (val == current) return; in __lock()
50 current = val; in __lock()