apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: apr-util/include apr_queue.h
Date Thu, 19 Dec 2002 17:33:31 GMT
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 */
  
  
  

Mime
View raw message