Lines Matching refs:common_sema
63 semaphore_t common_sema; /* main thing everyone blocks on */
99 kret = semaphore_wait(ctx->common_sema);
101 warnx("semaphore_wait(common_sema) thread %d failed %d",
109 kret = semaphore_signal(ctx->common_sema);
111 warnx("semaphore_signal(common_sema) thread %d failed %d",
126 semaphore_t common_sema;
137 kret = semaphore_create(mach_task_self(), &common_sema, SYNC_POLICY_FIFO /* not really, in this case */, 0);
162 ctxs[i].common_sema = common_sema;
199 kret = semaphore_signal(common_sema);
201 warnx("semaphore_signal(initial common_sema) failed %d", kret);