summaryrefslogtreecommitdiff
path: root/server/mpm_unix.c
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2018-01-18 18:28:25 +0000
committerYann Ylavic <ylavic@apache.org>2018-01-18 18:28:25 +0000
commitb31ba4c83cf22c31231b179b529f4b0b82c1940e (patch)
treeb1eb6f0c5dbf2143d9626702fa35169d7303ef71 /server/mpm_unix.c
parented1e3421f01b1fc5a956ffc1595dec2624f92fd0 (diff)
downloadhttpd-b31ba4c83cf22c31231b179b529f4b0b82c1940e.tar.gz
Follow up to r1821526: opacify fdqueue types.
[Reverted by r1821619] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1821538 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/mpm_unix.c')
-rw-r--r--server/mpm_unix.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/server/mpm_unix.c b/server/mpm_unix.c
index 2fae89bc4c..bc35f76359 100644
--- a/server/mpm_unix.c
+++ b/server/mpm_unix.c
@@ -1136,6 +1136,13 @@ struct fd_queue_info_t
struct recycled_pool *volatile recycled_pools;
};
+struct fd_queue_elem_t
+{
+ apr_socket_t *sd;
+ apr_pool_t *p;
+ void *baton;
+};
+
static apr_status_t queue_info_cleanup(void *data_)
{
fd_queue_info_t *qi = data_;
@@ -1469,7 +1476,7 @@ apr_status_t ap_queue_init(fd_queue_t * queue, int queue_capacity,
* to reserve an idle worker thread
*/
apr_status_t ap_queue_push(fd_queue_t * queue, apr_socket_t * sd,
- event_conn_state_t * ecs, apr_pool_t * p)
+ void * baton, apr_pool_t * p)
{
fd_queue_elem_t *elem;
apr_status_t rv;
@@ -1486,7 +1493,7 @@ apr_status_t ap_queue_push(fd_queue_t * queue, apr_socket_t * sd,
if (queue->in >= queue->bounds)
queue->in -= queue->bounds;
elem->sd = sd;
- elem->ecs = ecs;
+ elem->baton = baton;
elem->p = p;
queue->nelts++;
@@ -1527,7 +1534,7 @@ apr_status_t ap_queue_push_timer(fd_queue_t * queue, timer_event_t *te)
* 'sd'.
*/
apr_status_t ap_queue_pop_something(fd_queue_t * queue, apr_socket_t ** sd,
- event_conn_state_t ** ecs, apr_pool_t ** p,
+ void ** baton, apr_pool_t ** p,
timer_event_t ** te_out)
{
fd_queue_elem_t *elem;
@@ -1570,7 +1577,7 @@ apr_status_t ap_queue_pop_something(fd_queue_t * queue, apr_socket_t ** sd,
queue->out -= queue->bounds;
queue->nelts--;
*sd = elem->sd;
- *ecs = elem->ecs;
+ *baton = elem->baton;
*p = elem->p;
#ifdef AP_DEBUG
elem->sd = NULL;