Changeset 214489 in webkit for trunk/Source/JavaScriptCore/runtime/JSLock.h
- Timestamp:
- Mar 28, 2017, 1:08:49 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSLock.h
r213238 r214489 21 21 #pragma once 22 22 23 #include "PlatformThread.h"24 23 #include <mutex> 25 24 #include <wtf/Assertions.h> … … 94 93 VM* vm() { return m_vm; } 95 94 96 std::optional< PlatformThread> ownerThread() const95 std::optional<ThreadIdentifier> ownerThread() const 97 96 { 98 97 if (m_hasOwnerThread) 99 98 return m_ownerThread; 100 return { };99 return std::nullopt; 101 100 } 102 bool currentThreadIsHoldingLock() { return m_hasOwnerThread && m_ownerThread == current PlatformThread(); }101 bool currentThreadIsHoldingLock() { return m_hasOwnerThread && m_ownerThread == currentThread(); } 103 102 104 103 void willDestroyVM(VM*); … … 137 136 // See https://bugs.webkit.org/show_bug.cgi?id=169042#c6 138 137 bool m_hasOwnerThread { false }; 139 PlatformThreadm_ownerThread;138 ThreadIdentifier m_ownerThread; 140 139 intptr_t m_lockCount; 141 140 unsigned m_lockDropDepth;
Note:
See TracChangeset
for help on using the changeset viewer.