Lines Matching defs:ctx
68 struct t1_ctx *ctx = (struct t1_ctx *)arg;
71 dprintf("thread %d (pthread %p) started\n", ctx->currentThread, pthread_self());
74 kret = semaphore_wait(ctx->wait_to_start);
77 ctx->currentThread, kret);
82 if (ctx->useRealtime) {
83 dprintf("thread %d going realtime\n", ctx->currentThread);
87 kret = semaphore_signal(ctx->next_waiter);
90 ctx->currentThread, kret);
97 dprintf("thread %d blocking on common semaphore\n", ctx->currentThread);
99 kret = semaphore_wait(ctx->common_sema);
102 ctx->currentThread, kret);
106 ctx->wakeup_time = mach_absolute_time();
107 dprintf("thread %d woke up at %llu\n", ctx->currentThread, ctx->wakeup_time);
109 kret = semaphore_signal(ctx->common_sema);
112 ctx->currentThread, kret);