]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: add g_thread_new and g_thread_try_new bindings
authorEvan Nemerson <evan@coeus-group.com>
Sun, 12 Feb 2012 23:34:12 +0000 (15:34 -0800)
committerEvan Nemerson <evan@coeus-group.com>
Sun, 12 Feb 2012 23:34:12 +0000 (15:34 -0800)
vapi/glib-2.0.vapi

index dc40550d725a409d102ebe5b0bbf929bc2edd190..f845424fc6cad97fd33345931be54cc7e65048da 100644 (file)
@@ -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)]