[Webkit-unassigned] [Bug 159626] Implement RunLoop::runNowIfMainThreadOrDispatch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 13 01:21:34 PDT 2016


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

--- Comment #3 from Xabier Rodríguez Calvar <calvaris at igalia.com> ---
(In reply to comment #1)
> It's been a few times before that I wanted such functionality, but then
> convinced myself that it shouldn't be added. It would be pretty hard to know
> about code without knowing whether a block executes right away or races with
> other code in the function.

Yes, I understand the concern, which is not that important if you use a debugger and step into the function to see if it is run immediately. We write functions because they are a way to avoid duplicating code. The block:

if (isMainThread()) {
// do
} else
 RunLoop()...

happens a lot and I think it can be simplified in many places.

-- 
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/20160713/9d15abc8/attachment.html>


More information about the webkit-unassigned mailing list