]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Add GStaticMutex bindings
authorJürg Billeter <j@bitron.ch>
Wed, 29 Jul 2009 06:41:01 +0000 (08:41 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 29 Jul 2009 06:41:01 +0000 (08:41 +0200)
vapi/glib-2.0.vapi

index 031471f69ace98981276edccbdb3111664e91ad2..464763e1043d8b3dda9b3be70aa979502315f628 100644 (file)
@@ -1358,6 +1358,15 @@ namespace GLib {
                public void unlock ();
        }
 
+       [CCode (destroy_function = "g_static_mutex_free")]
+       public struct StaticMutex {
+               public StaticMutex ();
+               public void lock ();
+               public bool trylock ();
+               public void unlock ();
+               public void lock_full ();
+       }
+
        [CCode (destroy_function = "g_static_rec_mutex_free")]
        public struct StaticRecMutex {
                public StaticRecMutex ();