[vala] glib-2.0: Hide Thread constructors when targeting GLib < 2.32
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: Hide Thread constructors when targeting GLib < 2.32
- Date: Sat, 17 Mar 2012 13:58:13 +0000 (UTC)
commit 1402fde6eaa520564976779b937c0b3edc4bc629
Author: JÃrg Billeter <j bitron ch>
Date: Sat Mar 17 14:53:58 2012 +0100
glib-2.0: Hide Thread constructors when targeting GLib < 2.32
Fixes bug 672284.
vapi/glib-2.0.vapi | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 6604273..74c707c 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -1824,9 +1824,11 @@ namespace GLib {
[CCode (ref_function = "g_thread_ref", unref_function = "g_thread_unref")]
#endif
public class Thread<T> {
+#if GLIB_2_32
public Thread (string? name, ThreadFunc<T> func);
[CCode (cname = "g_thread_try_new")]
public Thread.try (string? name, ThreadFunc<T> func) throws GLib.Error;
+#endif
public static bool supported ();
[Deprecated (since = "2.32", replacement = "new Thread<T> ()")]
[CCode (simple_generics = true)]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]