[vala] glib-2.0: add g_thread_new and g_thread_try_new bindings



commit bba901a298e50da5758bc4554a0e298b94ab78f5
Author: Evan Nemerson <evan coeus-group com>
Date:   Sun Feb 12 15:34:12 2012 -0800

    glib-2.0: add g_thread_new and g_thread_try_new bindings

 vapi/glib-2.0.vapi |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index dc40550..f845424 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -1825,9 +1825,14 @@ namespace GLib {
 	[CCode (ref_function = "g_thread_ref", unref_function = "g_thread_unref")]
 #endif
 	public class Thread<T> {
+		public Thread (string? name, ThreadFunc<T> func);
+		[CCode (cname = "g_thread_try_new")]
+		public Thread.try (string? name, ThreadFunc<T> func) throws GLib.Error;
 		public static bool supported ();
+		[Deprecated (since = "2.32", replacement = "new Thread<T> ()")]
 		[CCode (simple_generics = true)]
 		public static unowned Thread<T> create<T> (ThreadFunc<T> func, bool joinable) throws ThreadError;
+		[Deprecated (since = "2.32", replacement = "new Thread<T> ()")]
 		[CCode (simple_generics = true)]
 		public static unowned Thread<T> create_full<T> (ThreadFunc<T> func, ulong stack_size, bool joinable, bool bound, ThreadPriority priority) throws ThreadError;
 		[CCode (simple_generics = true)]



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