Use MonotonicTime in WorkerRunLoop
authoryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jan 2019 18:30:24 +0000 (18:30 +0000)
committeryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jan 2019 18:30:24 +0000 (18:30 +0000)
commit79aece39b5959fd6f2f6bcdd54d8fc368f239577
treebbefd87713bdaafc3a439fd8a7d60898eaa8bcd4
parentf9df83f46a694a45869a022f4dcf3a089e9b8bf7
Use MonotonicTime in WorkerRunLoop
https://bugs.webkit.org/show_bug.cgi?id=193417

Reviewed by Saam Barati.

Source/WebCore:

Condition is based on MonotonicTime so MessageQueue should also be based on MonotonicTime.
Ditto for WorkerRunLoop.
No easy way to test the change which should not be easily observable.

* workers/WorkerRunLoop.cpp:
(WebCore::WorkerRunLoop::runInMode):

Source/WTF:

* wtf/MessageQueue.h:
(WTF::MessageQueue<DataType>::waitForMessage):
(WTF::MessageQueue<DataType>::waitForMessageFilteredWithTimeout):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240441 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/MessageQueue.h
Source/WebCore/ChangeLog
Source/WebCore/workers/WorkerRunLoop.cpp