mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-31 22:23:39 +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:
@@ -210,7 +210,7 @@ test_multithreaded_dynamic_type_init (void)
|
||||
|
||||
/* create threads */
|
||||
for (i = 0; i < N_THREADS; i++) {
|
||||
threads[i] = g_thread_new ("test", ref_unref_thread, (gpointer) DYNAMIC_OBJECT_TYPE, NULL);
|
||||
threads[i] = g_thread_new ("test", ref_unref_thread, (gpointer) DYNAMIC_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
/* execute threads */
|
||||
|
Reference in New Issue
Block a user