Lines Matching refs:ctx

143 	evContext_p *ctx = opaqueCtx.opaque;
145 return (ctx->lastEventTime);
174 evContext_p *ctx = opaqueCtx.opaque;
177 evPrintf(ctx, 1,
178 "evSetTimer(ctx %p, func %p, uap %p, due %ld.%09ld, inter %ld.%09ld)\n",
179 ctx, func, uap,
211 if (heap_insert(ctx->timers, id) < 0)
218 if (ctx->debug > 7) {
219 evPrintf(ctx, 7, "timers after evSetTimer:\n");
220 (void) heap_for_each(ctx->timers, print_timer, (void *)ctx);
228 evContext_p *ctx = opaqueCtx.opaque;
231 if (ctx->cur != NULL &&
232 ctx->cur->type == Timer &&
233 ctx->cur->u.timer.this == del) {
234 evPrintf(ctx, 8, "deferring delete of timer (executing)\n");
243 if (heap_element(ctx->timers, del->index) != del)
246 if (heap_delete(ctx->timers, del->index) < 0)
250 if (ctx->debug > 7) {
251 evPrintf(ctx, 7, "timers after evClearTimer:\n");
252 (void) heap_for_each(ctx->timers, print_timer, (void *)ctx);
264 evContext_p *ctx = opaqueCtx.opaque;
270 if (heap_element(ctx->timers, timer->index) != timer)
291 evContext_p *ctx = opaqueCtx.opaque;
296 if (heap_element(ctx->timers, timer->index) != timer)
325 result = heap_increased(ctx->timers, timer->index);
331 result = heap_decreased(ctx->timers, timer->index);
335 if (ctx->debug > 7) {
336 evPrintf(ctx, 7, "timers after evResetTimer:\n");
337 (void) heap_for_each(ctx->timers, print_timer, (void *)ctx);
350 evContext_p *ctx = opaqueCtx.opaque;
357 tt->lastTouched = ctx->lastEventTime;
361 evAddTime(ctx->lastEventTime, max_idle),
388 evContext_p *ctx = opaqueCtx.opaque;
394 tt->lastTouched = ctx->lastEventTime;
398 evAddTime(ctx->lastEventTime, max_idle),
404 evContext_p *ctx = opaqueCtx.opaque;
408 tt->lastTouched = ctx->lastEventTime;
416 evCreateTimers(const evContext_p *ctx) {
418 UNUSED(ctx);
424 evDestroyTimers(const evContext_p *ctx) {
425 (void) heap_for_each(ctx->timers, free_timer, NULL);
426 (void) heap_free(ctx->timers);
460 evContext_p *ctx = uap;
463 evPrintf(ctx, 7,
476 evContext_p *ctx = opaqueCtx.opaque;
483 idle = evSubTime(ctx->lastEventTime, this->lastTouched);