X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=main.cc;h=a400fe3c2defff0eafc93e812b005f6b2b6fcf69;hp=b38f7ef4816d003f45d876133dacf0dc0d816bab;hb=2cb7ca6d0aa997474b63f240c165e1a941cf6124;hpb=9e9096d119abfeed4753a5944b31916ae559e22e diff --git a/main.cc b/main.cc index b38f7ef4..a400fe3c 100644 --- 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" @@ -54,6 +56,8 @@ static void thread_wait_finish(void) { void real_main() { thrd_t user_thread; ucontext_t main_context; + //Initialize race detector + initRaceDetector(); //Create the singleton SnapshotStack object snapshotObject = new SnapshotStack();