sem_init(&_sem,0,0); // to wait until run thread is initialized
pthread_t traceThread;
- int bid;
+ int bid = 0;
int re2 = pthread_create(&traceThread, NULL,
SALOMETraceCollector::run, (void *)bid);
sem_wait(&_sem);
extern "C"
{
+ SALOMETRACECOLLECTOR_EXPORT
BaseTraceCollector *SingletonInstance(void)
{
BaseTraceCollector *instance = SALOMETraceCollector::instance();
//! See LocalTraceCollector instead of SALOMETraceCollector,
//! for usage without CORBA
-#if defined SALOMETRACECOLLECTOR_EXPORTS
-#if defined WIN32
-#define SALOMETRACECOLLECTOR_EXPORT __declspec( dllexport )
-#else
-#define SALOMETRACECOLLECTOR_EXPORT
-#endif
-#else
#if defined WNT
-#define SALOMETRACECOLLECTOR_EXPORT __declspec( dllimport )
+# if defined SALOMETRACECOLLECTOR_EXPORTS
+# define SALOMETRACECOLLECTOR_EXPORT __declspec( dllexport )
+# else
+# define SALOMETRACECOLLECTOR_EXPORT
+# endif
#else
-#define SALOMETRACECOLLECTOR_EXPORT
-#endif
+# define SALOMETRACECOLLECTOR_EXPORT
#endif
class SALOMETRACECOLLECTOR_EXPORT SALOMETraceCollector: