]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: provide access to original ThreadPool.free()
authorLuca Bruno <lucabru@src.gnome.org>
Wed, 18 Mar 2015 11:06:59 +0000 (12:06 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Wed, 18 Mar 2015 15:47:25 +0000 (16:47 +0100)
Fixes bug 746262

vapi/glib-2.0.vapi

index 2aa65a53780f4653deb7c7430a0a0ce82bbd52c2..d0c55d78e87814a59d5930e795131b976c6db209 100644 (file)
@@ -1914,6 +1914,15 @@ namespace GLib {
                public int get_max_threads ();
                public uint get_num_threads ();
                public uint unprocessed ();
+               [CCode (cname = "g_thread_pool_free")]
+               void _free (bool immediate, bool wait);
+               [CCode (cname = "vala__g_thread_pool_free_wrapper")]
+               public static void free (owned ThreadPool? pool, bool immediate, bool wait) {
+                       ThreadPool* ptr = (owned) pool;
+                       if (ptr != null) {
+                               ((ThreadPool)ptr)._free (immediate, wait);
+                       }
+               }
                public static void set_max_unused_threads (int max_threads);
                public static int get_max_unused_threads ();
                public static uint get_num_unused_threads ();