NEW238496
IPC::Connection::Connection() is not usable from non-main threads
https://bugs.webkit.org/show_bug.cgi?id=238496
Summary IPC::Connection::Connection() is not usable from non-main threads
Kimmo Kinnunen
Reported 2022-03-29 02:23:13 PDT
IPC::Connection::Connection() is not usable from non-main threads
Attachments
Patch (2.25 KB, patch)
2022-03-29 11:33 PDT, Kimmo Kinnunen
kkinnunen: review?
ews-feeder: commit-queue-
Kimmo Kinnunen
Comment 1 2022-03-29 11:33:28 PDT
Chris Dumez
Comment 2 2022-03-31 10:14:59 PDT
Comment on attachment 456047 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=456047&action=review > Source/WebKit/ChangeLog:8 > + Make it possible to instantiate Connection from non-main threads. Is it OK that even we can now construct an IPC::Connection off the main thread, it will still always get destroyed on the main thread (meaning that the destruction thread differs from the construction thread)?
Kimmo Kinnunen
Comment 3 2022-04-04 01:53:35 PDT
Comment on attachment 456047 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=456047&action=review >> Source/WebKit/ChangeLog:8 >> + Make it possible to instantiate Connection from non-main threads. > > Is it OK that even we can now construct an IPC::Connection off the main thread, it will still always get destroyed on the main thread (meaning that the destruction thread differs from the construction thread)? Yes, I think it is sound. This also preserves the assertions in the destructor. However, currently the feature of constructing in arbitrary thread is not that useful. Also, the feature in practice cannot be used until more of the features (all?) are made thread agnostic. This means the work in this patch is mostly useful only at the point when ~Connection runs in arbitrary thread.
Radar WebKit Bug Importer
Comment 4 2022-04-05 02:24:13 PDT
Note You need to log in before you can comment on or make changes to this bug.