-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WorkQueue should inherit from SerialFunctionDispatcher
https://bugs.webkit.org/show_bug.cgi?id=260779 rdar://114535523 Reviewed by Kimmo Kinnunen. Make WorkQueue inherit from SerialFunctionDispatcher so that it can be used similarly to RunLoop and WorkerOrWorkletThread. Needed for this change to compile: - Export the whole class to get the multiple inheritance to work across binaries. - When exporting WorkQueue, it will export function with OSObjectPtr<dispatch_queue_t>. This has different type in Obj-C and in C++. If the type is used in both, then there will be unresolved symbol since C++ type is used when creating the library (WorkQueue.cpp), as such remove method prototype from WorkQueue and have a single WorkQueue constructor taking an enum instead. Ideally, we would implement only bug 261080, but there are futher issues getting it done. So to not block other works depending on this change, we push this version first. * Source/WTF/wtf/FunctionDispatcher.h: * Source/WTF/wtf/SuspendableWorkQueue.cpp: (WTF::SuspendableWorkQueue::stateString): * Source/WTF/wtf/SuspendableWorkQueue.h: * Source/WTF/wtf/WorkQueue.cpp: (WTF::WorkQueue::main): (WTF::WorkQueue::dispatch): (WTF::WorkQueue::assertIsCurrent const): (WTF::ConcurrentWorkQueue::dispatch): * Source/WTF/wtf/WorkQueue.h: (WTF::WTF_ASSERTS_ACQUIRED_CAPABILITY): Deleted. * Source/WTF/wtf/cocoa/WorkQueueCocoa.cpp: (WTF::WorkQueue::WorkQueue): (WTF::WorkQueue::constructMainWorkQueue): Deleted. * Source/WTF/wtf/generic/WorkQueueGeneric.cpp: (WTF::WorkQueue::WorkQueue): (WTF::WorkQueue::constructMainWorkQueue): Deleted. Canonical link: https://commits.webkit.org/267623@main
- Loading branch information
Showing
7 changed files
with
85 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters