[JSC] Move platformThreadSignal to WTF
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Mar 2017 20:08:49 +0000 (20:08 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Mar 2017 20:08:49 +0000 (20:08 +0000)
commitd5adbb94bfd9e2ab435ecdd2a06e8cf8e51d8903
tree48f838c8315df0c3f11604cd7996a9aa79d1eab6
parent25e88b7a1ff83ccfeef83c613e00a05521667b9c
[JSC] Move platformThreadSignal to WTF
https://bugs.webkit.org/show_bug.cgi?id=170097

Reviewed by Mark Lam.

Source/JavaScriptCore:

It is a small clean up towards https://bugs.webkit.org/show_bug.cgi?id=170027.
platformThreadSignal uses PlatformThread in JSC, but it can be implemented in
WTF ThreadIdentifier.

* runtime/JSLock.cpp:
(JSC::JSLock::lock):
* runtime/JSLock.h:
(JSC::JSLock::ownerThread):
(JSC::JSLock::currentThreadIsHoldingLock):
* runtime/PlatformThread.h:
(JSC::platformThreadSignal): Deleted.
* runtime/VM.h:
(JSC::VM::ownerThread):
* runtime/VMTraps.cpp:
(JSC::VMTraps::SignalSender::send):

Source/WTF:

* wtf/Threading.h:
* wtf/ThreadingPthreads.cpp:
(WTF::signalThread):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@214489 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/JSLock.cpp
Source/JavaScriptCore/runtime/JSLock.h
Source/JavaScriptCore/runtime/PlatformThread.h
Source/JavaScriptCore/runtime/VM.h
Source/JavaScriptCore/runtime/VMTraps.cpp
Source/WTF/ChangeLog
Source/WTF/wtf/Threading.h
Source/WTF/wtf/ThreadingPthreads.cpp