[Goodies-dev] [Goodies-commits] r1752 - in verve-plugin/trunk: . panel-plugin scripts

Jannis Pohlmann jannis at xfce.org
Tue Jul 11 17:18:19 CEST 2006


On Tue, 11 Jul 2006 17:09:30 +0200, Benedikt Meurer wrote:

> Jannis Pohlmann wrote:
> >>>+  /* Connect to load-binaries signal of environment */
> >>>+  g_signal_connect (G_OBJECT (verve_env_get()), "load-binaries",
> >>>G_CALLBACK (verve_plugin_load_completion), verve); +
> >>
> >>GCompletion is not thread-safe, you'll need to lock the access to
> >>your GCompletion using a mutex or whatever if you access them from
> >>more than one thread. Otherwise the plugin will crash randomly.
> > 
> > You mean like gdk_threads_enter/leave?
> 
> Using the global GDK lock would be another option, yes.

Ok, should be fixed. Though I'm not sure if the call of those functions
before variable declarations is good style. 

- Jannis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/goodies-dev/attachments/20060711/639cfc15/attachment.pgp>


More information about the Goodies-dev mailing list