From bba901a298e50da5758bc4554a0e298b94ab78f5 Mon Sep 17 00:00:00 2001 From: Evan Nemerson Date: Sun, 12 Feb 2012 15:34:12 -0800 Subject: [PATCH] glib-2.0: add g_thread_new and g_thread_try_new bindings --- vapi/glib-2.0.vapi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index dc40550d7..f845424fc 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 { + public Thread (string? name, ThreadFunc func); + [CCode (cname = "g_thread_try_new")] + public Thread.try (string? name, ThreadFunc func) throws GLib.Error; public static bool supported (); + [Deprecated (since = "2.32", replacement = "new Thread ()")] [CCode (simple_generics = true)] public static unowned Thread create (ThreadFunc func, bool joinable) throws ThreadError; + [Deprecated (since = "2.32", replacement = "new Thread ()")] [CCode (simple_generics = true)] public static unowned Thread create_full (ThreadFunc func, ulong stack_size, bool joinable, bool bound, ThreadPriority priority) throws ThreadError; [CCode (simple_generics = true)] -- 2.47.2