mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +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:
@@ -128,8 +128,7 @@ create_server (GSocketFamily family,
|
||||
g_socket_listen (server, &error);
|
||||
g_assert_no_error (error);
|
||||
|
||||
data->thread = g_thread_new ("server", server_thread, data, &error);
|
||||
g_assert_no_error (error);
|
||||
data->thread = g_thread_new ("server", server_thread, data);
|
||||
|
||||
return data;
|
||||
}
|
||||
|
Reference in New Issue
Block a user