Lines Matching full:locked
28 volatile int locked;
41 p->locked = 0;
50 assert(p->locked == 0);
59 while (__sync_val_compare_and_swap(&p->locked, 0, 1) == 1)
69 (void) __sync_fetch_and_sub(&p->locked, 1);
75 (void) __sync_fetch_and_sub(&p->locked, 1);
83 while (__sync_val_compare_and_swap(&p->locked, 0, 1) == 1)
93 (void) __sync_fetch_and_sub(&p->locked, 1);
99 (void) __sync_fetch_and_sub(&p->locked, 1);
105 while (__sync_val_compare_and_swap(&p->locked, 0, 1) == 1)
120 (void) __sync_fetch_and_sub(&p->locked, 1);