[Webkit-unassigned] [Bug 158111] WorkQueue::dispatch() / RunLoop::dispatch() should not copy captured lambda variables

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 26 10:38:00 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=158111

Chris Dumez <cdumez at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #279868|0                           |1
        is obsolete|                            |

--- Comment #5 from Chris Dumez <cdumez at apple.com> ---
Created attachment 279895
  --> https://bugs.webkit.org/attachment.cgi?id=279895&action=review
WIP patch

Version without a virtual base. We could easily extend this to support other lambdas than void() by templatizing the class.
Right now it is non-copyable, but we could imagine a version that is copyable using ThreadSafeRefCounted internally.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160526/cfb3d49f/attachment.html>


More information about the webkit-unassigned mailing list