fdqueue.h revision 8639a789ef8a4adec121d5b26b4d66c5cf8989cc
/* 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_WORKER
* @{
*/
#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>
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;
struct fd_queue_t {
unsigned int nelts;
unsigned int bounds;
unsigned int in;
unsigned int out;
int terminated;
};
typedef struct fd_queue_t fd_queue_t;
#endif /* FDQUEUE_H */
/** @} */