Main Page | Modules | Namespace List | Data Structures | File List | Data Fields | Globals | Related Pages

include/apr_queue.h

Go to the documentation of this file.
00001 /* Copyright 2000-2005 The Apache Software Foundation or its licensors, as 00002 * applicable. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #ifndef APR_QUEUE_H 00018 #define APR_QUEUE_H 00019 00020 #if APR_HAS_THREADS 00021 00029 #include "apu.h" 00030 #include "apr_errno.h" 00031 #include "apr_pools.h" 00032 00033 #ifdef __cplusplus 00034 extern "C" { 00035 #endif /* __cplusplus */ 00036 00046 typedef struct apr_queue_t apr_queue_t; 00047 00054 APU_DECLARE(apr_status_t) apr_queue_create(apr_queue_t **queue, 00055 unsigned int queue_capacity, 00056 apr_pool_t *a); 00057 00067 APU_DECLARE(apr_status_t) apr_queue_push(apr_queue_t *queue, void *data); 00068 00078 APU_DECLARE(apr_status_t) apr_queue_pop(apr_queue_t *queue, void **data); 00079 00090 APU_DECLARE(apr_status_t) apr_queue_trypush(apr_queue_t *queue, void *data); 00091 00102 APU_DECLARE(apr_status_t) apr_queue_trypop(apr_queue_t *queue, void **data); 00103 00112 APU_DECLARE(unsigned int) apr_queue_size(apr_queue_t *queue); 00113 00119 APU_DECLARE(apr_status_t) apr_queue_interrupt_all(apr_queue_t *queue); 00120 00127 APU_DECLARE(apr_status_t) apr_queue_term(apr_queue_t *queue); 00128 00129 #ifdef __cplusplus 00130 } 00131 #endif 00132 00135 #endif /* APR_HAS_THREADS */ 00136 00137 #endif /* APRQUEUE_H */

Generated on Sun Nov 20 19:08:42 2005 for Apache Portable Runtime Utility Library by doxygen 1.3.8