[webkit-gtk] Calling webkit_web_view_load_uri from a pthread

Gavin Lambert gavinl at compacsort.com
Wed Oct 5 14:33:14 PDT 2011


Quoth Andrew Wood:
> Whats the safe way to call webkit_web_view_load_uri from a pthread
> other than the main thread. Ive tried using gdk_threads_enter() 
> but am still getting race condition style crashes. Most navigation 
> actions are initiated from the main thread but I have another 
> thread which occasionally needs to initiate a navigation itself.

I just use a Glib::Dispatcher to pass a signal through to the main thread
and get it to actually start the navigation.




More information about the webkit-gtk mailing list