Revision: 57075
          http://sourceforge.net/p/brlcad/code/57075
Author:   brlcad
Date:     2013-08-22 19:38:15 +0000 (Thu, 22 Aug 2013)
Log Message:
-----------
define a semaphore specifically for malloc.  this will prevent the deadlock 
condition frequently encountered with libfb's i/o locking (which has absolutely 
nothing to do with a potentially threadunsafe malloc implementation.).

Modified Paths:
--------------
    brlcad/trunk/include/bu.h

Modified: brlcad/trunk/include/bu.h
===================================================================
--- brlcad/trunk/include/bu.h   2013-08-22 19:33:13 UTC (rev 57074)
+++ brlcad/trunk/include/bu.h   2013-08-22 19:38:15 UTC (rev 57075)
@@ -4827,7 +4827,8 @@
 #define BU_SEM_BN_NOISE 2
 #define BU_SEM_MAPPEDFILE 3
 #define BU_SEM_THREAD 4
-#define BU_SEM_LAST (BU_SEM_THREAD+1)  /* allocate this many for LIBBU+LIBBN */
+#define BU_SEM_MALLOC 5
+#define BU_SEM_LAST (BU_SEM_MALLOC+1)  /* allocate this many for LIBBU+LIBBN */
 /*
  * Automatic restart capability in bu_bomb().  The return from
  * BU_SETJUMP is the return from the setjmp().  It is 0 on the first

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


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to