Lines Matching defs:pause
97 struct evrpc_hook_ctx *pause;
104 while ((pause = TAILQ_FIRST(&base->paused_requests)) != NULL) {
105 TAILQ_REMOVE(&base->paused_requests, pause, next);
106 mm_free(pause);
541 struct evrpc_hook_ctx *pause;
550 while ((pause = TAILQ_FIRST(&pool->paused_requests)) != NULL) {
551 TAILQ_REMOVE(&pool->paused_requests, pause, next);
552 mm_free(pause);
766 struct evrpc_hook_ctx *pause = mm_malloc(sizeof(*pause));
767 if (pause == NULL)
770 pause->ctx = ctx;
771 pause->cb = cb;
773 TAILQ_INSERT_TAIL(&base->pause_requests, pause, next);
782 struct evrpc_hook_ctx *pause;
784 TAILQ_FOREACH(pause, head, next) {
785 if (pause->ctx == ctx)
789 if (pause == NULL)
792 (*pause->cb)(pause->ctx, res);
793 TAILQ_REMOVE(head, pause, next);
794 mm_free(pause);