Home | History | Annotate | Download | only in tests

Lines Matching full:locked

38   volatile int locked;
51 p->locked = 0;
60 assert(p->locked == 0);
69 while (__sync_val_compare_and_swap(&p->locked, 0, 1) == 1)
79 (void) __sync_fetch_and_sub(&p->locked, 1);
85 (void) __sync_fetch_and_sub(&p->locked, 1);
94 while (__sync_val_compare_and_swap(&p->locked, 0, 1) == 1)
104 (void) __sync_fetch_and_sub(&p->locked, 1);
110 (void) __sync_fetch_and_sub(&p->locked, 1);
117 while (__sync_val_compare_and_swap(&p->locked, 0, 1) == 1)
134 (void) __sync_fetch_and_sub(&p->locked, 1);