[Webkit-unassigned] [Bug 164193] Implement requestIdleCallback
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 14 08:49:08 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=164193
--- Comment #11 from Michael Catanzaro <mcatanzaro at gnome.org> ---
So Ms2ger's patch from five years ago provides a starting point.
We will need four different implementations for four different platform event loops:
* Windows
* Cocoa (uses CFRunLoop)
* GLib (uses GMainContext/GMainLoop)
* Generic
The generic RunLoop currently has no concept of priority, but we could add one.
For GLib it's easy, because the concept of idle dispatch maps directly to G_PRIORITY_DEFAULT_IDLE.
For Cocoa, CFRunLoop supports CFRunLoopMode. I guess we could use a special mode and dispatch it only when no events for other modes are pending? I'm not sure.
For Windows, I did not investigate because the implementation looks gnarly. It looks to be based on a "message window" concept that is quite different from GMainContext/GMainLoop or CFRunLoop.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230314/ece4addf/attachment.htm>
More information about the webkit-unassigned
mailing list