Revision: 74273
          http://sourceforge.net/p/brlcad/code/74273
Author:   d_rossberg
Date:     2019-10-31 16:08:31 +0000 (Thu, 31 Oct 2019)
Log Message:
-----------
explicite initialization of multithreading should not be necessary any more

Modified Paths:
--------------
    rt^3/trunk/include/brlcad/globals.h
    rt^3/trunk/src/coreInterface/globals.cpp

Modified: rt^3/trunk/include/brlcad/globals.h
===================================================================
--- rt^3/trunk/include/brlcad/globals.h 2019-10-31 16:06:49 UTC (rev 74272)
+++ rt^3/trunk/include/brlcad/globals.h 2019-10-31 16:08:31 UTC (rev 74273)
@@ -61,12 +61,6 @@
     void BRLCAD_COREINTERFACE_EXPORT RegisterLogHandler(LogHandler& 
logHandler) throw(bad_alloc);
     void BRLCAD_COREINTERFACE_EXPORT DeRegisterLogHandler(LogHandler& 
logHandler) throw();
     //@}
-
-    /// @name special BRL-CAD library setups
-    //@{
-    /// activate thread-protection - this makes the functions threadsafe but 
slower
-    void BRLCAD_COREINTERFACE_EXPORT PrepareForMultithreading(void) 
throw(bad_alloc);
-    //@}
 }
 
 

Modified: rt^3/trunk/src/coreInterface/globals.cpp
===================================================================
--- rt^3/trunk/src/coreInterface/globals.cpp    2019-10-31 16:06:49 UTC (rev 
74272)
+++ rt^3/trunk/src/coreInterface/globals.cpp    2019-10-31 16:08:31 UTC (rev 
74273)
@@ -93,15 +93,3 @@
 
     BU_UNSETJUMP;
 }
-
-
-void BRLCAD_COREINTERFACE_EXPORT BRLCAD::PrepareForMultithreading(void) 
throw(bad_alloc) {
-    if (!BU_SETJUMP)
-        bu_semaphore_init(RT_SEM_LAST);
-    else {
-        BU_UNSETJUMP;
-        throw bad_alloc("BRLCAD::PrepareForMultithreading");
-    }
-
-    BU_UNSETJUMP;
-}

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



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to