Lines Matching defs:pause
101 struct evrpc_hook_ctx *pause;
108 while ((pause = TAILQ_FIRST(&base->paused_requests)) != NULL) {
109 TAILQ_REMOVE(&base->paused_requests, pause, next);
110 mm_free(pause);
546 struct evrpc_hook_ctx *pause;
555 while ((pause = TAILQ_FIRST(&pool->paused_requests)) != NULL) {
556 TAILQ_REMOVE(&pool->paused_requests, pause, next);
557 mm_free(pause);
771 struct evrpc_hook_ctx *pause = mm_malloc(sizeof(*pause));
772 if (pause == NULL)
775 pause->ctx = ctx;
776 pause->cb = cb;
778 TAILQ_INSERT_TAIL(&base->pause_requests, pause, next);
787 struct evrpc_hook_ctx *pause;
789 TAILQ_FOREACH(pause, head, next) {
790 if (pause->ctx == ctx)
794 if (pause == NULL)
797 (*pause->cb)(pause->ctx, res);
798 TAILQ_REMOVE(head, pause, next);
799 mm_free(pause);