Loading...
Searching...
No Matches
apr_queue.h
Go to the documentation of this file.
/* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
#ifndef APR_QUEUE_H
#define APR_QUEUE_H
#include "apu.h"
#include "apr_errno.h"
#include "apr_pools.h"
#if APR_HAS_THREADS
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef struct apr_queue_t apr_queue_t;
APU_DECLARE(apr_status_t) apr_queue_create(apr_queue_t **queue,
unsigned int queue_capacity,
apr_pool_t *a);
APU_DECLARE(apr_status_t) apr_queue_push(apr_queue_t *queue, void *data);
APU_DECLARE(apr_status_t) apr_queue_pop(apr_queue_t *queue, void **data);
APU_DECLARE(apr_status_t) apr_queue_trypush(apr_queue_t *queue, void *data);
APU_DECLARE(apr_status_t) apr_queue_trypop(apr_queue_t *queue, void **data);
APU_DECLARE(unsigned int) apr_queue_size(apr_queue_t *queue);
APU_DECLARE(apr_status_t) apr_queue_interrupt_all(apr_queue_t *queue);
APU_DECLARE(apr_status_t) apr_queue_term(apr_queue_t *queue);
#ifdef __cplusplus
}
#endif
#endif /* APR_HAS_THREADS */
#endif /* APRQUEUE_H */
apr_queue_trypop
apr_status_t apr_queue_trypop(apr_queue_t *queue, void **data)
apr_queue_push
apr_status_t apr_queue_push(apr_queue_t *queue, void *data)
apr_queue_pop
apr_status_t apr_queue_pop(apr_queue_t *queue, void **data)
apr_queue_interrupt_all
apr_status_t apr_queue_interrupt_all(apr_queue_t *queue)
apr_queue_t
struct apr_queue_t apr_queue_t
Definition apr_queue.h:47
apr_queue_create
apr_status_t apr_queue_create(apr_queue_t **queue, unsigned int queue_capacity, apr_pool_t *a)
apr_queue_trypush
apr_status_t apr_queue_trypush(apr_queue_t *queue, void *data)
apr_queue_term
apr_status_t apr_queue_term(apr_queue_t *queue)
apr_queue_size
unsigned int apr_queue_size(apr_queue_t *queue)