apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject cvs commit: apr-util/misc apr_queue.c
Date Mon, 19 Aug 2002 16:37:45 GMT
ianh        2002/08/19 09:37:45

  Modified:    include  apr_queue.h
               misc     apr_queue.c
  Log:
  if you don't have threads, you can't use this.
  
  Revision  Changes    Path
  1.2       +2 -0      apr-util/include/apr_queue.h
  
  Index: apr_queue.h
  ===================================================================
  RCS file: /home/cvs/apr-util/include/apr_queue.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- apr_queue.h	18 Aug 2002 20:22:28 -0000	1.1
  +++ apr_queue.h	19 Aug 2002 16:37:44 -0000	1.2
  @@ -58,6 +58,7 @@
   
   #ifndef APR_QUEUE_H
   #define APR_QUEUE_H
  +#if APR_HAS_THREADS
   /**
    * @file apr_queue.h
    * @brief Thread Safe FIFO bounded queue
  @@ -152,4 +153,5 @@
    */
   apr_status_t apr_queue_term(apr_queue_t *queue);
   
  +#endif /*  APR_HAS_THREADS */
   #endif /* APRQUEUE_H */
  
  
  
  1.3       +4 -0      apr-util/misc/apr_queue.c
  
  Index: apr_queue.c
  ===================================================================
  RCS file: /home/cvs/apr-util/misc/apr_queue.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- apr_queue.c	18 Aug 2002 20:41:08 -0000	1.2
  +++ apr_queue.c	19 Aug 2002 16:37:45 -0000	1.3
  @@ -65,12 +65,14 @@
   #include <unistd.h>
   #endif
   
  +#include "apu.h"
   #include "apr_portable.h"
   #include "apr_thread_mutex.h"
   #include "apr_thread_cond.h"
   #include "apr_errno.h"
   #include "apr_queue.h"
   
  +#if APR_HAS_THREADS
   /* 
    * define this to get debug messages
    *
  @@ -439,3 +441,5 @@
       }
       return apr_queue_interrupt_all(queue);
   }
  +
  +#endif /* APR_HAS_THREADS */
  
  
  

Mime
View raw message