[webkit-gtk] Changing the DOM from a separate thread / repaint issues

Thomas Hunger tehunger at gmail.com
Wed Nov 30 03:59:52 PST 2016


On 29 November 2016 at 16:48, Michael Catanzaro <mcatanzaro at igalia.com>
wrote:

> On Tue, 2016-11-29 at 15:52 +0000, Thomas Hunger wrote:
> > Or maybe I'm barking up the wrong tree?
>
> Yeah. As a rule, GNOME APIs are not threadsafe (except for refcounting)
> unless documented otherwise. You should post your DOM operations to be
> executed on the main thread. For example, in C you would do that using
> g_idle_add() which schedules the work on the global default main
> context.
>

Injecting changes via the main loop via idleAdd does indeed work, many
thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-gtk/attachments/20161130/79e7431e/attachment.html>


More information about the webkit-gtk mailing list