apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: apr/include apr_thread_proc.h
Date Fri, 23 Feb 2001 16:08:05 GMT
rbb         01/02/23 08:08:05

  Modified:    include  apr_thread_proc.h
  Log:
  Don't define the thread functions if threads haven't been included in the
  build.  This allows Apache's threaded MPMs to die at compile time if
  we build APR without threads.  This also makes more sense logically.
  
  Revision  Changes    Path
  1.57      +4 -0      apr/include/apr_thread_proc.h
  
  Index: apr_thread_proc.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_thread_proc.h,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -d -b -w -u -r1.56 -r1.57
  --- apr_thread_proc.h	2001/02/23 09:09:46	1.56
  +++ apr_thread_proc.h	2001/02/23 16:08:05	1.57
  @@ -153,6 +153,8 @@
   
   /* Thread Function definitions */
   
  +#if APR_HAS_THREADS
  +
   /**
    * Create and initialize a new threadattr variable
    * @param new_attr The newly created threadattr.
  @@ -296,6 +298,8 @@
   APR_DECLARE(apr_status_t) apr_threadkey_data_set(void *data, const char *key,
                                                   apr_status_t (*cleanup) (void *),
                                                   apr_threadkey_t *threadkey);
  +
  +#endif
   
   /* Process Function definitions */
   
  
  
  

Mime
View raw message