Changeset 213231 in webkit for trunk/Source/JavaScriptCore/runtime/JSLock.h
- Timestamp:
- Mar 1, 2017, 10:51:02 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSLock.h
r213229 r213231 21 21 #pragma once 22 22 23 #include "PlatformThread.h"24 23 #include <mutex> 24 #include <thread> 25 25 #include <wtf/Assertions.h> 26 26 #include <wtf/Lock.h> … … 94 94 VM* vm() { return m_vm; } 95 95 96 std:: optional<PlatformThread> ownerThread() const { return m_ownerThread; }97 bool currentThreadIsHoldingLock() { return m_ownerThread && m_ownerThread == currentPlatformThread(); }96 std::thread::id ownerThread() const { return m_ownerThreadID; } 97 JS_EXPORT_PRIVATE bool currentThreadIsHoldingLock(); 98 98 99 99 void willDestroyVM(VM*); … … 127 127 128 128 Lock m_lock; 129 std:: optional<PlatformThread> m_ownerThread;129 std::thread::id m_ownerThreadID; 130 130 intptr_t m_lockCount; 131 131 unsigned m_lockDropDepth;
Note:
See TracChangeset
for help on using the changeset viewer.