apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/test testatomic.c
Date Sun, 16 Nov 2003 23:58:48 GMT
trawick     2003/11/16 15:58:48

  Modified:    test     testatomic.c
  Log:
  do the right thing on BEOS
  
  avoid some duplication of platform knowledge
  
  Revision  Changes    Path
  1.34      +7 -2      apr/test/testatomic.c
  
  Index: testatomic.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testatomic.c,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- testatomic.c	16 Nov 2003 01:33:02 -0000	1.33
  +++ testatomic.c	16 Nov 2003 23:58:48 -0000	1.34
  @@ -64,7 +64,12 @@
   #include <unistd.h>
   #endif
   
  -#if !(defined WIN32) && !(defined NETWARE)
  +#if !(defined BEOS) && !(defined WIN32) && !(defined NETWARE) &&
!(defined __MVS__) && !(defined DARWIN)
  +/* ugh... */
  +#define HAVE_PTHREAD_SETCONCURRENCY
  +#endif
  +
  +#ifdef HAVE_PTHREAD_SETCONCURRENCY
   #include <pthread.h>
   #endif
   
  @@ -256,7 +261,7 @@
       }
   
       printf("APR Atomic Test\n===============\n\n");
  -#if !(defined WIN32) && !(defined NETWARE) && !(defined __MVS__) &&
!(defined DARWIN)
  +#ifdef HAVE_PTHREAD_SETCONCURRENCY
       pthread_setconcurrency(8);
   #endif
       printf("%-60s", "Initializing the context"); 
  
  
  

Mime
View raw message