Revision: 54962
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54962&view=rev
Author:   brlcad
Date:     2013-03-29 05:49:51 +0000 (Fri, 29 Mar 2013)
Log Message:
-----------
just because we have pthreads doesn't mean we have the cpuset macros, e.g., mac 
os x.

Modified Paths:
--------------
    brlcad/trunk/src/libbu/affinity.c

Modified: brlcad/trunk/src/libbu/affinity.c
===================================================================
--- brlcad/trunk/src/libbu/affinity.c   2013-03-29 05:26:26 UTC (rev 54961)
+++ brlcad/trunk/src/libbu/affinity.c   2013-03-29 05:49:51 UTC (rev 54962)
@@ -46,7 +46,7 @@
 int
 parallel_set_affinity(void)
 {
-#if defined(HAVE_PTHREAD_H)
+#if defined(HAVE_PTHREAD_H) && defined (CPU_ZERO)
 
     pthread_t curr_thread = pthread_self();    /* Get current thread */
     int cpulim = bu_avail_cpus();              /* Max number of CPUs available 
for the process */

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to