mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-17 19:02:52 +02:00
g_thread_new: never fail
Remove the GError argument from g_thread_new() and abort on failure. Introduce g_thread_try() for those who want to handle failure.
This commit is contained in:
@@ -140,6 +140,9 @@ struct _GOnce
|
||||
GThread * g_thread_ref (GThread *thread);
|
||||
void g_thread_unref (GThread *thread);
|
||||
GThread * g_thread_new (const gchar *name,
|
||||
GThreadFunc func,
|
||||
gpointer data);
|
||||
GThread * g_thread_try (const gchar *name,
|
||||
GThreadFunc func,
|
||||
gpointer data,
|
||||
GError **error);
|
||||
|
Reference in New Issue
Block a user