Index: src/platform/mutex.h |
diff --git a/src/platform/mutex.h b/src/platform/mutex.h |
index 19405424102c377130f08e071387d1c616e49ab7..c760c20e499924554d0df40451577788a15f0e96 100644 |
--- a/src/platform/mutex.h |
+++ b/src/platform/mutex.h |
@@ -94,6 +94,22 @@ class Mutex V8_FINAL { |
int level_; |
#endif |
+ V8_INLINE(void AssertHeldAndUnmark()) { |
+#ifdef DEBUG |
+ ASSERT_EQ(1, level_); |
+ level_--; |
+#endif |
+ } |
+ |
+ V8_INLINE(void AssertUnheldAndMark()) { |
+#ifdef DEBUG |
+ ASSERT_EQ(0, level_); |
+ level_++; |
+#endif |
+ } |
+ |
+ friend class ConditionVariable; |
+ |
DISALLOW_COPY_AND_ASSIGN(Mutex); |
}; |