mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-10 10:33:42 +01:00
thread: nuke the concept of 'joinable'
And remove the 'joinable' argument from g_thread_new() and g_thread_new_full(). Change the wording in the docs. Clarify expectations for (deprecated) g_thread_create().
This commit is contained in:
@@ -81,8 +81,12 @@ main (int argc,
|
||||
|
||||
if (cancel_timeout)
|
||||
{
|
||||
GThread *thread;
|
||||
|
||||
cancellable = g_cancellable_new ();
|
||||
g_thread_new ("cancel", cancel_thread, cancellable, FALSE, NULL);
|
||||
thread = g_thread_new ("cancel", cancel_thread, cancellable, NULL);
|
||||
g_assert (thread != NULL);
|
||||
g_thread_unref (thread);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user