apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr/test testatomic.c
Date Fri, 05 Dec 2003 16:53:13 GMT
jorton      2003/12/05 08:53:13

  Modified:    test     testatomic.c
  Log:
  * testatomic.c: Whitelist rather than blacklist to enable
  pthread_setconcurrency (fix build on a bunch of platforms
  which don't have pthread_setconcurrency at all).
  
  Revision  Changes    Path
  1.36      +5 -2      apr/test/testatomic.c
  
  Index: testatomic.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testatomic.c,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -u -r1.35 -r1.36
  --- testatomic.c	3 Dec 2003 00:04:42 -0000	1.35
  +++ testatomic.c	5 Dec 2003 16:53:12 -0000	1.36
  @@ -64,8 +64,11 @@
   #include <unistd.h>
   #endif
   
  -#if !(defined BEOS) && !(defined WIN32) && !(defined NETWARE) &&
!(defined __MVS__) && !(defined DARWIN)
  -/* ugh... */
  +/* Use pthread_setconcurrency where it is available and not a nullop,
  + * i.e. platforms using M:N or M:1 thread models: */
  +#if APR_HAS_THREADS && \
  +   ((defined(SOLARIS2) && SOLARIS2 > 26) || defined(_AIX))
  +/* also HP-UX, IRIX? ... */
   #define HAVE_PTHREAD_SETCONCURRENCY
   #endif
   
  
  
  

Mime
View raw message