Revision: 54937
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54937&view=rev
Author:   brlcad
Date:     2013-03-28 05:39:05 +0000 (Thu, 28 Mar 2013)
Log Message:
-----------
we now have a bu_parallel_id() that works, shift from 1-to-ncpu to 0-to-ncpu-1

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

Modified: brlcad/trunk/src/libbu/heap.c
===================================================================
--- brlcad/trunk/src/libbu/heap.c       2013-03-28 05:36:00 UTC (rev 54936)
+++ brlcad/trunk/src/libbu/heap.c       2013-03-28 05:39:05 UTC (rev 54937)
@@ -154,11 +154,8 @@
            per_cpu[i].bin = bu_calloc(BINS, sizeof(struct bins), "struct 
bins");
     }
 
-#if 0
-    oncpu = bu_parallel_id();
-#else
-    oncpu = 0;
-#endif
+    /* what thread are we? */
+    oncpu = bu_parallel_id() - 1;
 
     if (sz > BINS || sz == 0) {
        per_cpu[oncpu].misses++;

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


------------------------------------------------------------------------------
Own the Future-Intel® 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://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to