Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make sthread work out of MC build trees
[simgrid.git] / src / sthread / sthread.h
index 6e7d4f8..233dbb1 100644 (file)
@@ -10,8 +10,7 @@
 #if defined(__cplusplus)
 extern "C" {
 #endif
-extern int
-    sthread_inside_simgrid; // allows logs and library constructors to disable the interception on pthread operations
+extern volatile int sthread_inside_simgrid; // Only intercept pthread calls in user code
 
 int sthread_main(int argc, char** argv, char** envp, int (*raw_main)(int, char**, char**));