diff options
Diffstat (limited to 'deps/v8/src/base/platform/mutex.h')
-rw-r--r-- | deps/v8/src/base/platform/mutex.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/deps/v8/src/base/platform/mutex.h b/deps/v8/src/base/platform/mutex.h index 6b4158f079..a69eee0bc6 100644 --- a/deps/v8/src/base/platform/mutex.h +++ b/deps/v8/src/base/platform/mutex.h @@ -92,13 +92,12 @@ class V8_BASE_EXPORT Mutex final { DISALLOW_COPY_AND_ASSIGN(Mutex); }; - // POD Mutex initialized lazily (i.e. the first time Pointer() is called). // Usage: // static LazyMutex my_mutex = LAZY_MUTEX_INITIALIZER; // // void my_function() { -// LockGuard<Mutex> guard(my_mutex.Pointer()); +// MutexGuard guard(my_mutex.Pointer()); // // Do something. // } // @@ -225,6 +224,8 @@ class LockGuard final { DISALLOW_COPY_AND_ASSIGN(LockGuard); }; +using MutexGuard = LockGuard<Mutex>; + } // namespace base } // namespace v8 |