[vala/staging] glib-2.0: Add missing "DestroysInstance" attributes to Mutex/Locker API



commit 99d0f6f971d4da61cc555869e9984225891a7de4
Author: Jeremy Philippe <jeremy philippe gmail com>
Date:   Mon Sep 2 01:27:44 2019 +0200

    glib-2.0: Add missing "DestroysInstance" attributes to Mutex/Locker API

 vapi/glib-2.0.vapi | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 307140778..b6ff0c2d7 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -2082,16 +2082,17 @@ namespace GLib {
        [CCode (destroy_function = "g_rec_mutex_clear")]
        public struct RecMutex {
                public RecMutex ();
-               public void lock ();
+               public void @lock ();
                public bool trylock ();
                public void unlock ();
        }
 
        [Version (since = "2.60")]
        [Compact]
-       [CCode (destroy_function = "g_rec_mutex_locker_free")]
+       [CCode (free_function = "g_rec_mutex_locker_free")]
        public class RecMutexLocker {
                public RecMutexLocker (RecMutex rec_mutex);
+               [DestroysInstance]
                public void free ();
        }
 
@@ -2109,17 +2110,19 @@ namespace GLib {
 
        [Version (since = "2.62")]
        [Compact]
-       [CCode (destroy_function = "g_rw_lock_reader_locker_free")]
+       [CCode (free_function = "g_rw_lock_reader_locker_free")]
        public class RWLockReaderLocker {
                public RWLockReaderLocker (RWLock rw_lock);
+               [DestroysInstance]
                public void free ();
        }
 
        [Version (since = "2.62")]
        [Compact]
-       [CCode (destroy_function = "g_rw_lock_writer_locker_free")]
+       [CCode (free_function = "g_rw_lock_writer_locker_free")]
        public class RWLockWriterLocker {
                public RWLockWriterLocker (RWLock rw_lock);
+               [DestroysInstance]
                public void free ();
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]