summaryrefslogtreecommitdiff
path: root/test/tsan/custom_mutex.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/tsan/custom_mutex.h')
-rw-r--r--test/tsan/custom_mutex.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tsan/custom_mutex.h b/test/tsan/custom_mutex.h
index 675ad59b322c8..e3ac7a9a52a7f 100644
--- a/test/tsan/custom_mutex.h
+++ b/test/tsan/custom_mutex.h
@@ -6,11 +6,11 @@
// A very primitive mutex annotated with tsan annotations.
class Mutex {
public:
- Mutex(bool prof = true)
+ Mutex(bool prof, unsigned flags)
: prof_(prof)
, locked_(false)
, seq_(0) {
- __tsan_mutex_create(this, 0);
+ __tsan_mutex_create(this, flags);
}
~Mutex() {
@@ -87,5 +87,5 @@ class Mutex {
}
};
-Mutex Mutex::prof_mu_(false);
+Mutex Mutex::prof_mu_(false, __tsan_mutex_linker_init);
int Mutex::prof_data_;