tsan_unittest_SOURCES = tsan_unittest.cpp
tsan_unittest_CXXFLAGS = $(AM_CXXFLAGS) \
-DTHREAD_WRAPPERS='"tsan_thread_wrappers_pthread.h"' \
- -Wno-sign-compare -Wno-shadow @FLAG_W_NO_EMPTY_BODY@
+ -Wno-sign-compare -Wno-shadow
if HAVE_BOOST_1_35
boost_thread_SOURCES = boost_thread.cpp
// Helgrind memory usage testing stuff
// If not present in dynamic_annotations.h/.cc - ignore
#ifndef ANNOTATE_RESET_STATS
-#define ANNOTATE_RESET_STATS()
+#define ANNOTATE_RESET_STATS() do { } while(0)
#endif
#ifndef ANNOTATE_PRINT_STATS
-#define ANNOTATE_PRINT_STATS()
+#define ANNOTATE_PRINT_STATS() do { } while(0)
#endif
#ifndef ANNOTATE_PRINT_MEMORY_USAGE
-#define ANNOTATE_PRINT_MEMORY_USAGE(a)
+#define ANNOTATE_PRINT_MEMORY_USAGE(a) do { } while(0)
#endif
//
void Worker2() {
FLAG1=GLOB2;
- while(!FLAG2);
+ while(!FLAG2)
+ ;
GLOB2=FLAG2;
}
void Worker1() {
FLAG2=GLOB1;
- while(!FLAG1);
+ while(!FLAG1)
+ ;
GLOB1=FLAG1;
}