Bug 158457

Summary: Remove the need for the CrossThreadTask::CrossThreadTask(NoncopyableFunction<void ()>&) constructor
Product: WebKit Reporter: Brady Eidson <beidson>
Component: Web Template FrameworkAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Brady Eidson
Reported 2016-06-06 19:54:02 PDT
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
Note You need to log in before you can comment on or make changes to this bug.