Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/base/platform/mutex.h')
-rw-r--r--deps/v8/src/base/platform/mutex.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/v8/src/base/platform/mutex.h b/deps/v8/src/base/platform/mutex.h
index 5b3b31ec1e5..c3144f7ceb5 100644
--- a/deps/v8/src/base/platform/mutex.h
+++ b/deps/v8/src/base/platform/mutex.h
@@ -67,7 +67,8 @@ class V8_BASE_EXPORT Mutex final {
return native_handle_;
}
- V8_INLINE void AssertHeld() { DCHECK_EQ(1, level_); }
+ V8_INLINE void AssertHeld() const { DCHECK_EQ(1, level_); }
+ V8_INLINE void AssertUnheld() const { DCHECK_EQ(0, level_); }
private:
NativeHandle native_handle_;