fdqueue.h revision 7677dd9b01d498a2af1cddb8e2506a25d7da630b
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @brief fd queue declarations
*
* @addtogroup APACHE_MPM_EVENT
* @{
*/
#ifndef FDQUEUE_H
#define FDQUEUE_H
#include "httpd.h"
#include <stdlib.h>
#include <unistd.h>
#endif
#include <apr_thread_mutex.h>
#include <apr_thread_cond.h>
#endif
#include <apr_errno.h>
#include "ap_mpm.h"
typedef struct fd_queue_info_t fd_queue_info_t;
struct fd_queue_elem_t
{
apr_pool_t *p;
};
typedef struct fd_queue_elem_t fd_queue_elem_t;
typedef struct timer_event_t timer_event_t;
struct timer_event_t {
void *baton;
};
struct fd_queue_t
{
int nelts;
int bounds;
int terminated;
};
typedef struct fd_queue_t fd_queue_t;
apr_pool_t * a);
timer_event_t ** te);
#endif /* FDQUEUE_H */
/** @} */