]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Add GStaticRWLock binding
authorJürg Billeter <j@bitron.ch>
Mon, 30 Mar 2009 16:04:20 +0000 (18:04 +0200)
committerJürg Billeter <j@bitron.ch>
Mon, 30 Mar 2009 16:04:20 +0000 (18:04 +0200)
vapi/glib-2.0.vapi

index a748422c013cc061f78f147bd294e26d3a76666f..0b887617ff587a9497585b42b3bcb1012269f00c 100644 (file)
@@ -1349,6 +1349,17 @@ namespace GLib {
                public void lock_full ();
        }
 
+       [CCode (destroy_function = "g_static_rw_lock_free")]
+       public struct StaticRWLock {
+               public StaticRWLock ();
+               public void reader_lock ();
+               public bool reader_trylock ();
+               public void reader_unlock ();
+               public void writer_lock ();
+               public bool writer_trylock ();
+               public void writer_unlock ();
+       }
+
        [Compact]
        [CCode (ref_function = "", unref_function = "")]
        public class Private {