NEW 158208
Add templated form of RunLoop::dispatch for posting cross thread tasks
https://bugs.webkit.org/show_bug.cgi?id=158208
Summary Add templated form of RunLoop::dispatch for posting cross thread tasks
Brady Eidson
Reported 2016-05-30 09:11:30 PDT
Add thread-safety warning to RunLoop::dispatch to tasks posted from a different thread. This safety warning can eventually become an ASSERT or other hard failures. After the safety warning is in place, we will add a new templated function for dispatching cross thread tasks that will use CrossThreadCopier (https://bugs.webkit.org/show_bug.cgi?id=158207)
Attachments
Brady Eidson
Comment 1 2016-05-30 09:15:15 PDT
Retitling: Add templated form of RunLoop::dispatch for posting cross thread tasks Figured it doesn't make sense to add the warning before adding the alternative to resolve it. In fact, maybe the warning comes later. I'll see how big the patches get once I'm working on this.
Brady Eidson
Comment 2 2016-05-31 18:36:26 PDT
Doing this the way I was originally envisioning turned out to be impossible (or at least difficult beyond my ability to figure out) I'm looking at some alternatives.
Brady Eidson
Comment 3 2016-06-01 09:34:11 PDT
Do to the general lack of introspection and templatization of lambdas, I currently don't think there's a great solution to this. Will leave the bug open because it's something we should do once able.
Note You need to log in before you can comment on or make changes to this bug.