Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cocoa WorkQueue::dispatchWithQOS() and dispatch() work item lifetime …
…semantics do not match https://bugs.webkit.org/show_bug.cgi?id=260852 rdar://114618174 Reviewed by Jean-Yves Avenard and Chris Dumez. dispatch() users expect the work function to be destructed in the queue Add the same semantic to dispatchWithQOS() to avoid confusion in the code and to have uniform interface. * Source/WTF/wtf/cocoa/WorkQueueCocoa.cpp: (WTF::WorkQueueBase::dispatchWithQOS): * Tools/TestWebKitAPI/Tests/WTF/WorkQueue.cpp: (TestWebKitAPI::TEST): Canonical link: https://commits.webkit.org/267776@main
- Loading branch information