From 015f4b4513279c4be40c03121473ffcea347ed84 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Thu, 13 Oct 2011 00:43:33 -0400 Subject: 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(). --- gthread/tests/1bit-mutex.c | 4 ++-- gthread/tests/atomic.c | 2 +- gthread/tests/gwakeuptest.c | 2 +- gthread/tests/spawn-multithreaded.c | 3 +-- 4 files changed, 5 insertions(+), 6 deletions(-) (limited to 'gthread') diff --git a/gthread/tests/1bit-mutex.c b/gthread/tests/1bit-mutex.c index 8d98b0e5c..8ee492ed9 100644 --- a/gthread/tests/1bit-mutex.c +++ b/gthread/tests/1bit-mutex.c @@ -133,8 +133,8 @@ testcase (gconstpointer data) for (i = 0; i < THREADS; i++) threads[i] = g_thread_new ("foo", thread_func, - GINT_TO_POINTER (use_pointers), - TRUE, NULL); + GINT_TO_POINTER (use_pointers), + NULL); for (i = 0; i < THREADS; i++) g_thread_join (threads[i]); diff --git a/gthread/tests/atomic.c b/gthread/tests/atomic.c index 12f72a0e6..ccc9f17ec 100644 --- a/gthread/tests/atomic.c +++ b/gthread/tests/atomic.c @@ -47,7 +47,7 @@ test_atomic (void) bucket[i] = 0; for (i = 0; i < THREADS; i++) - threads[i] = g_thread_new ("atomic", thread_func, GINT_TO_POINTER (i), TRUE, NULL); + threads[i] = g_thread_new ("atomic", thread_func, GINT_TO_POINTER (i), NULL); for (i = 0; i < THREADS; i++) g_thread_join (threads[i]); diff --git a/gthread/tests/gwakeuptest.c b/gthread/tests/gwakeuptest.c index 3da5753bb..92eec72d7 100644 --- a/gthread/tests/gwakeuptest.c +++ b/gthread/tests/gwakeuptest.c @@ -229,7 +229,7 @@ test_threaded (void) for (i = 0; i < NUM_THREADS; i++) { context_init (&contexts[i]); - threads[i] = g_thread_new ("test", thread_func, &contexts[i], TRUE, NULL); + threads[i] = g_thread_new ("test", thread_func, &contexts[i], NULL); } /* dispatch tokens */ diff --git a/gthread/tests/spawn-multithreaded.c b/gthread/tests/spawn-multithreaded.c index 119012fcc..df29abdb0 100644 --- a/gthread/tests/spawn-multithreaded.c +++ b/gthread/tests/spawn-multithreaded.c @@ -41,8 +41,7 @@ multithreaded_test_run (GThreadFunc function) { GThread *thread; - thread = g_thread_new ("test", function, - GINT_TO_POINTER (i), TRUE, &error); + thread = g_thread_new ("test", function, GINT_TO_POINTER (i), &error); g_assert_no_error (error); g_ptr_array_add (threads, thread); } -- cgit v1.2.1