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

Michael Catanzaro mcatanzaro at igalia.com
Tue Nov 29 08:48:21 PST 2016


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.

Michael


More information about the webkit-gtk mailing list