WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
223105
Introduce ensureOnMainThread()
https://bugs.webkit.org/show_bug.cgi?id=223105
Summary
Introduce ensureOnMainThread()
Chris Dumez
Reported
2021-03-11 17:32:42 PST
Introduce ensureOnMainThread(), similarly to the recently added ensureOnMainThreadRunLoop(). It runs the task synchronously when on the main thread, otherwise dispatches the task to the main thread.
Attachments
Patch
(30.76 KB, patch)
2021-03-11 17:34 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2021-03-11 17:34:27 PST
Created
attachment 423001
[details]
Patch
Darin Adler
Comment 2
2021-03-11 19:26:14 PST
Comment on
attachment 423001
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=423001&action=review
> Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:-171 > -static void ensureOnMainThread(Function<void()>&& f)
Wow, would you look at that? Someone had the good name idea already!
EWS
Comment 3
2021-03-11 20:48:29 PST
Committed
r274324
: <
https://commits.webkit.org/r274324
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 423001
[details]
.
Radar WebKit Bug Importer
Comment 4
2021-03-11 20:49:14 PST
<
rdar://problem/75346904
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug