Title: [287319] branches/safari-612-branch/Source/WTF/wtf/cocoa/WorkQueueCocoa.cpp
- Revision
- 287319
- Author
- [email protected]
- Date
- 2021-12-21 09:46:03 -0800 (Tue, 21 Dec 2021)
Log Message
Apply patch. rdar://86742929
Modified Paths
Diff
Modified: branches/safari-612-branch/Source/WTF/wtf/cocoa/WorkQueueCocoa.cpp (287318 => 287319)
--- branches/safari-612-branch/Source/WTF/wtf/cocoa/WorkQueueCocoa.cpp 2021-12-21 17:17:54 UTC (rev 287318)
+++ branches/safari-612-branch/Source/WTF/wtf/cocoa/WorkQueueCocoa.cpp 2021-12-21 17:46:03 UTC (rev 287319)
@@ -56,9 +56,10 @@
void WorkQueue::dispatchWithQOS(Function<void()>&& function, QOS qos)
{
- dispatch_async(m_dispatchQueue.get(), dispatch_block_create_with_qos_class(DISPATCH_BLOCK_ENFORCE_QOS_CLASS, Thread::dispatchQOSClass(qos), 0, makeBlockPtr([function = WTFMove(function)] {
+ dispatch_block_t blockWithQOS = dispatch_block_create_with_qos_class(DISPATCH_BLOCK_ENFORCE_QOS_CLASS, Thread::dispatchQOSClass(qos), 0, makeBlockPtr([function = WTFMove(function)] {
function();
- }).get()));
+ }).get());
+ dispatch_async(m_dispatchQueue.get(), blockWithQOS);
#if !__has_feature(objc_arc)
Block_release(blockWithQOS);
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes