[webkit-changes] [WebKit/WebKit] 88975f: Add SerialFunctionDispatcher interface.
mattwoodrow
noreply at github.com
Fri Oct 21 12:42:54 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 88975f1a76643517c374f31af415605f633a4dcb
https://github.com/WebKit/WebKit/commit/88975f1a76643517c374f31af415605f633a4dcb
Author: Matt Woodrow <mattwoodrow at apple.com>
Date: 2022-10-21 (Fri, 21 Oct 2022)
Changed paths:
M Source/WTF/wtf/FunctionDispatcher.h
M Source/WTF/wtf/RunLoop.cpp
M Source/WTF/wtf/RunLoop.h
M Source/WebCore/workers/WorkerOrWorkletThread.cpp
M Source/WebCore/workers/WorkerOrWorkletThread.h
Log Message:
-----------
Add SerialFunctionDispatcher interface.
https://bugs.webkit.org/show_bug.cgi?id=246305
Reviewed by Dean Jackson.
This creates a common interface between RunLoop, and WorkerOrWorkletThread, that lets you dispatch Functions
that are guaranteed to be executed serially.
* Source/WTF/wtf/FunctionDispatcher.h:
(WTF::WTF_ASSERTS_ACQUIRED_CAPABILITY):
* Source/WTF/wtf/RunLoop.cpp:
(WTF::RunLoop::assertIsCurrent const):
* Source/WTF/wtf/RunLoop.h:
* Source/WebCore/workers/WorkerOrWorkletThread.cpp:
(WebCore::WorkerOrWorkletThread::dispatch):
(WebCore::WorkerOrWorkletThread::assertIsCurrent const):
* Source/WebCore/workers/WorkerOrWorkletThread.h:
Canonical link: https://commits.webkit.org/255844@main
More information about the webkit-changes
mailing list