[Webkit-unassigned] [Bug 144542] [SOUP] Network Cache: IOChannel operations are not sent to the right thread
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 4 15:53:00 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=144542
Darin Adler <darin at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #252264|review? |review+
Flags| |
--- Comment #3 from Darin Adler <darin at apple.com> ---
Comment on attachment 252264
--> https://bugs.webkit.org/attachment.cgi?id=252264
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=252264&action=review
Too bad all this code is boilerplate and repeated three times. Seems like instead you could have a helper function and that takes a single lambda to abstract away which of the three IOChannel functions is called.
> Source/WebKit2/NetworkProcess/cache/NetworkCacheIOChannelSoup.cpp:162
> + GMainLoopSource::scheduleAndDeleteOnDestroy("[WebKit] IOChannel::read", std::function<void()>([channel, offset, size, completionHandler] {
> + channel->read(offset, size, completionHandler);
> + }), G_PRIORITY_DEFAULT, nullptr, g_main_context_default());
Why is that typecast to std::function needed? Should just work without it.
--
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/20150504/6d2498a4/attachment-0001.html>
More information about the webkit-unassigned
mailing list