GNOME Bugzilla – Bug 532329
Use recursive mutex for lock statements
Last modified: 2008-05-23 21:41:45 UTC
We currently use GMutex for lock statements, however, this is not guaranteed to be a recursive lock, which would make sense for lock statements (it's recursive in C#). We should switch to GStaticRecMutex, as this is guaranteed to be recursive and it will also work for instance fields.
Created attachment 111438 [details] [review] Code!!! One of those few times Philip actually coded something for Vala instead of whining at Jürg so that he codes it for Philip. This time he, me, implemented the recursive locking for Vala. :-)
Created attachment 111439 [details] [review] Beter code!!! Same thing, better
2008-05-23 Jürg Billeter <j@bitron.ch> * vapi/glib-2.0.vapi: * gobject/valaccodegenerator.vala: Use GStaticRecMutex for lock statements, patch by Philip Van Hoof, fixes bug 532329 Fixed in r1417.