]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
using namespace std ;
authorrahuel <rahuel@opencascade.com>
Thu, 9 Feb 2006 16:33:22 +0000 (16:33 +0000)
committerrahuel <rahuel@opencascade.com>
Thu, 9 Feb 2006 16:33:22 +0000 (16:33 +0000)
Must follow the includes

static mutex not initialized

src/SALOMELocalTrace/BaseTraceCollector.cxx
src/SALOMELocalTrace/LocalTraceBufferPool.cxx

index de612189795aa8d5146864424325996766a9b9ca..d70735f676d9632006f6558b41bfab5c33e68c95 100644 (file)
 #include <fstream>
 #include <cstdlib>
 
-using namespace std;
-
 #include "BaseTraceCollector.hxx"
 #include "LocalTraceBufferPool.hxx"
 
+using namespace std;
+
 // Class attributes initialisation, for class method BaseTraceCollector::run
 
 BaseTraceCollector* BaseTraceCollector::_singleton = 0;
-pthread_mutex_t BaseTraceCollector::_singletonMutex;
+pthread_mutex_t BaseTraceCollector::_singletonMutex = PTHREAD_MUTEX_INITIALIZER ;
 sem_t BaseTraceCollector::_sem;
 int BaseTraceCollector::_threadToClose = 0;
 pthread_t* BaseTraceCollector::_threadId = 0; // used to control single run
index c7d321ec6597dbb7093f1f8e1547a5fcf7efdcfc..a6ffdb3c038fadae280734dffb10562e3076276a 100644 (file)
@@ -51,12 +51,12 @@ using namespace std;
 // Class static attributes initialisation
 
 LocalTraceBufferPool* LocalTraceBufferPool::_singleton = 0;
-#ifndef WNT
-pthread_mutex_t LocalTraceBufferPool::_singletonMutex;
-#else
+//#ifndef WNT
+//pthread_mutex_t LocalTraceBufferPool::_singletonMutex;
+//#else
 pthread_mutex_t LocalTraceBufferPool::_singletonMutex =
   PTHREAD_MUTEX_INITIALIZER;
-#endif
+//#endif
 BaseTraceCollector *LocalTraceBufferPool::_myThreadTrace = 0;
 
 // ============================================================================