[vala] glib-2.0: provide access to original ThreadPool.free()
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: provide access to original ThreadPool.free()
- Date: Wed, 18 Mar 2015 15:47:31 +0000 (UTC)
commit 476247f68c6c2fba4043759e9caebc917e49d951
Author: Luca Bruno <lucabru src gnome org>
Date: Wed Mar 18 12:06:59 2015 +0100
glib-2.0: provide access to original ThreadPool.free()
Fixes bug 746262
vapi/glib-2.0.vapi | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 2aa65a5..d0c55d7 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]