Bug 158457
Summary: | Remove the need for the CrossThreadTask::CrossThreadTask(NoncopyableFunction<void ()>&) constructor | ||
---|---|---|---|
Product: | WebKit | Reporter: | Brady Eidson <beidson> |
Component: | Web Template Framework | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Brady Eidson
Remove the need for the CrossThreadTask::CrossThreadTask(NoncopyableFunction<void ()>&) constructor
The purpose of CrossThreadTask is that users feed in a method and all the arguments, which are then copied as needed for cross-thread use.
By exposing a constructor that takes any callable function, one can create a "Cross thread task" that isn't really cross thread.
We added this for expediency while hacking on lambdas and dispatch methods, but its necessity should be removed.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |