aboutsummaryrefslogtreecommitdiff
path: root/lib/tsan/rtl/tsan_mutex.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tsan/rtl/tsan_mutex.h')
-rw-r--r--lib/tsan/rtl/tsan_mutex.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/tsan/rtl/tsan_mutex.h b/lib/tsan/rtl/tsan_mutex.h
index 5b22a4145185..a2b489107a98 100644
--- a/lib/tsan/rtl/tsan_mutex.h
+++ b/lib/tsan/rtl/tsan_mutex.h
@@ -29,9 +29,11 @@ enum MutexType {
MutexTypeSlab,
MutexTypeAnnotations,
MutexTypeAtExit,
+ MutexTypeMBlock,
+ MutexTypeJavaMBlock,
// This must be the last.
- MutexTypeCount,
+ MutexTypeCount
};
class Mutex {
@@ -45,6 +47,8 @@ class Mutex {
void ReadLock();
void ReadUnlock();
+ void CheckLocked();
+
private:
atomic_uintptr_t state_;
#if TSAN_DEBUG