diff options
Diffstat (limited to 'modules/http2/h2_worker.h')
-rw-r--r-- | modules/http2/h2_worker.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/modules/http2/h2_worker.h b/modules/http2/h2_worker.h index 035448e5..7a8c254f 100644 --- a/modules/http2/h2_worker.h +++ b/modules/http2/h2_worker.h @@ -30,9 +30,9 @@ typedef struct h2_worker h2_worker; * until a h2_mplx becomes available or the worker itself * gets aborted (idle timeout, for example). */ typedef apr_status_t h2_worker_mplx_next_fn(h2_worker *worker, - struct h2_mplx **pm, + void *ctx, struct h2_task **ptask, - void *ctx); + int *psticky); /* Invoked just before the worker thread exits. */ typedef void h2_worker_done_fn(h2_worker *worker, void *ctx); @@ -45,16 +45,13 @@ struct h2_worker { int id; apr_thread_t *thread; apr_pool_t *pool; - apr_pool_t *task_pool; struct apr_thread_cond_t *io; - apr_socket_t *socket; h2_worker_mplx_next_fn *get_next; h2_worker_done_fn *worker_done; void *ctx; - int aborted; - struct h2_task *task; + unsigned int aborted : 1; }; /** @@ -143,11 +140,4 @@ int h2_worker_get_id(h2_worker *worker); int h2_worker_is_aborted(h2_worker *worker); -struct h2_task *h2_worker_create_task(h2_worker *worker, struct h2_mplx *m, - const struct h2_request *req, int eos); -apr_status_t h2_worker_setup_task(h2_worker *worker, struct h2_task *task); -void h2_worker_release_task(h2_worker *worker, struct h2_task *task); - -apr_socket_t *h2_worker_get_socket(h2_worker *worker); - #endif /* defined(__mod_h2__h2_worker__) */ |