Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 21209 invoked by uid 500); 19 Dec 2002 17:33:32 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 21185 invoked by uid 500); 19 Dec 2002 17:33:32 -0000 Delivered-To: apmail-apr-util-cvs@apache.org Date: 19 Dec 2002 17:33:31 -0000 Message-ID: <20021219173331.74340.qmail@icarus.apache.org> From: jerenkrantz@apache.org To: apr-util-cvs@apache.org Subject: cvs commit: apr-util/include apr_queue.h X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N jerenkrantz 2002/12/19 09:33:30 Modified: include apr_queue.h Log: Clean up apr_queue.h - Add note about why we require APR_HAS_THREADS - Add C++ goodness - Include required header files so apr_queue.h can be included by itself Revision Changes Path 1.4 +21 -1 apr-util/include/apr_queue.h Index: apr_queue.h =================================================================== RCS file: /home/cvs/apr-util/include/apr_queue.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -u -r1.3 -r1.4 --- apr_queue.h 10 Nov 2002 09:24:13 -0000 1.3 +++ apr_queue.h 19 Dec 2002 17:33:30 -0000 1.4 @@ -58,16 +58,29 @@ #ifndef APR_QUEUE_H #define APR_QUEUE_H + #if APR_HAS_THREADS /** * @file apr_queue.h * @brief Thread Safe FIFO bounded queue + * @note Since most implementations of the queue are backed by a condition + * variable implementation, it isn't available on systems without threads. + * Although condition variables are some times available without threads. */ + +#include "apr_errno.h" +#include "apr_pools.h" + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + /** * @defgroup APR_Util_FIFO Thread Safe FIFO bounded queue * @ingroup APR_Util * @{ */ + /** * opaque structure */ @@ -154,5 +167,12 @@ */ apr_status_t apr_queue_term(apr_queue_t *queue); -#endif /* APR_HAS_THREADS */ +#ifdef __cplusplus +} +#endif + +/** @} */ + +#endif /* APR_HAS_THREADS */ + #endif /* APRQUEUE_H */