Lines Matching refs:ctx

160 	evContext_p *ctx = opaqueCtx.opaque;
162 return (ctx->lastEventTime);
193 evContext_p *ctx = opaqueCtx.opaque;
196 evPrintf(ctx, 1,
197 "evSetTimer(ctx %p, func %p, uap %p, due %ld.%09ld, inter %ld.%09ld)\n",
198 ctx, func, uap,
230 if (heap_insert(ctx->timers, id) < 0)
237 if (ctx->debug > 7) {
238 evPrintf(ctx, 7, "timers after evSetTimer:\n");
239 (void) heap_for_each(ctx->timers, print_timer, (void *)ctx);
247 evContext_p *ctx = opaqueCtx.opaque;
250 if (ctx->cur != NULL &&
251 ctx->cur->type == Timer &&
252 ctx->cur->u.timer.this == del) {
253 evPrintf(ctx, 8, "deferring delete of timer (executing)\n");
262 if (heap_element(ctx->timers, del->index) != del)
265 if (heap_delete(ctx->timers, del->index) < 0)
269 if (ctx->debug > 7) {
270 evPrintf(ctx, 7, "timers after evClearTimer:\n");
271 (void) heap_for_each(ctx->timers, print_timer, (void *)ctx);
283 evContext_p *ctx = opaqueCtx.opaque;
289 if (heap_element(ctx->timers, timer->index) != timer)
310 evContext_p *ctx = opaqueCtx.opaque;
315 if (heap_element(ctx->timers, timer->index) != timer)
344 result = heap_increased(ctx->timers, timer->index);
350 result = heap_decreased(ctx->timers, timer->index);
354 if (ctx->debug > 7) {
355 evPrintf(ctx, 7, "timers after evResetTimer:\n");
356 (void) heap_for_each(ctx->timers, print_timer, (void *)ctx);
369 evContext_p *ctx = opaqueCtx.opaque;
376 tt->lastTouched = ctx->lastEventTime;
380 evAddTime(ctx->lastEventTime, max_idle),
407 evContext_p *ctx = opaqueCtx.opaque;
413 tt->lastTouched = ctx->lastEventTime;
417 evAddTime(ctx->lastEventTime, max_idle),
423 evContext_p *ctx = opaqueCtx.opaque;
427 tt->lastTouched = ctx->lastEventTime;
435 evCreateTimers(const evContext_p *ctx) {
437 UNUSED(ctx);
443 evDestroyTimers(const evContext_p *ctx) {
444 (void) heap_for_each(ctx->timers, free_timer, NULL);
445 (void) heap_free(ctx->timers);
479 evContext_p *ctx = uap;
482 evPrintf(ctx, 7,
495 evContext_p *ctx = opaqueCtx.opaque;
502 idle = evSubTime(ctx->lastEventTime, this->lastTouched);