mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-29 20:34:11 +02: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:
@@ -90,8 +90,12 @@ main (int argc, char *argv[])
|
||||
|
||||
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