mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-07 22:20:05 +02:00
Add new thread creation API
Deprecate both g_thread_create functions and add g_thread_new() and g_thread_new_full(). The new functions expect a name for the thread. Change GThreadPool, GMainContext and GDBus to create named threads. https://bugzilla.gnome.org/show_bug.cgi?id=660635
This commit is contained in:
@@ -134,12 +134,14 @@ GLIB_VAR gboolean g_threads_got_initialized;
|
||||
|
||||
GMutex* g_static_mutex_get_mutex_impl (GMutex **mutex);
|
||||
|
||||
GThread *g_thread_create (GThreadFunc func,
|
||||
GThread *g_thread_new (const gchar *name,
|
||||
GThreadFunc func,
|
||||
gpointer data,
|
||||
gboolean joinable,
|
||||
GError **error);
|
||||
|
||||
GThread *g_thread_create_with_stack_size (GThreadFunc func,
|
||||
GThread *g_thread_new_full (const gchar *name,
|
||||
GThreadFunc func,
|
||||
gpointer data,
|
||||
gboolean joinable,
|
||||
gsize stack_size,
|
||||
|
Reference in New Issue
Block a user