summaryrefslogtreecommitdiff
path: root/gthread
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2011-10-13 00:43:33 -0400
committerRyan Lortie <desrt@desrt.ca>2011-10-13 00:43:33 -0400
commit015f4b4513279c4be40c03121473ffcea347ed84 (patch)
tree217484a9870e1e092bb409ffb5e7f02c3114d7e1 /gthread
parentb0e73ca390d0f22baccc3636dd4d2e8e9cb0f58f (diff)
downloadglib-015f4b4513279c4be40c03121473ffcea347ed84.tar.gz
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().
Diffstat (limited to 'gthread')
-rw-r--r--gthread/tests/1bit-mutex.c4
-rw-r--r--gthread/tests/atomic.c2
-rw-r--r--gthread/tests/gwakeuptest.c2
-rw-r--r--gthread/tests/spawn-multithreaded.c3
4 files changed, 5 insertions, 6 deletions
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);
}