Merge branch 'master' into brian
[model-checker.git] / main.cc
diff --git a/main.cc b/main.cc
index 3dff4f424ce2a2b36aa3c1fa7fc8819f30c89af3..c9ac1d0663206feccb6d05d43803689e7214574e 100644 (file)
--- a/main.cc
+++ b/main.cc
@@ -6,6 +6,8 @@
 #include "common.h"
 #include "threads.h"
 
+#include "datarace.h"
+
 /* global "model" object */
 #include "model.h"
 #include "snapshot-interface.h"
@@ -55,6 +57,9 @@ static void real_main() {
        thrd_t user_thread;
        ucontext_t main_context;
 
+       //Initialize race detector
+       initRaceDetector();
+
        //Create the singleton SnapshotStack object
        snapshotObject = new SnapshotStack();