summaryrefslogtreecommitdiff
path: root/tests/thread-test.c
diff options
context:
space:
mode:
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>2000-09-01 13:03:23 +0000
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>2000-09-01 13:03:23 +0000
commit64bbfbb6dae9a6f9f5b839b85beb42c3d7f2a790 (patch)
treea15ffff00cbecb08378efd5d4ecca39a00abbd74 /tests/thread-test.c
parent21a498b1a54aa59bd0a3c4e6985307ec326683d2 (diff)
Include gerror.h before it is used for some g_thread_* functions.
2000-09-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * glib.h: Include gerror.h before it is used for some g_thread_* functions. * gthread.c, gthreadpool.c, glib.h: Enable error reporting for thread creation, namly for g_thread_create, g_thread_pool_new, g_thread_pool_push and g_thread_pool_set_max_threads. * tests/thread-test.c, tests/threadpool-test.c: Adapted accordingly. * gthread-posix.c (g_thread_create_posix_impl): Use GError to report errors.
Diffstat (limited to 'tests/thread-test.c')
-rw-r--r--tests/thread-test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/thread-test.c b/tests/thread-test.c
index 1d203df48..1316982a8 100644
--- a/tests/thread-test.c
+++ b/tests/thread-test.c
@@ -27,7 +27,7 @@ test_g_mutex (void)
g_assert (G_TRYLOCK (test_g_mutex));
thread = g_thread_create (test_g_mutex_thread,
GINT_TO_POINTER (42),
- 0, TRUE, TRUE, G_THREAD_PRIORITY_NORMAL);
+ 0, TRUE, TRUE, G_THREAD_PRIORITY_NORMAL, NULL);
g_usleep (G_MICROSEC);
test_g_mutex_int = 42;
G_UNLOCK (test_g_mutex);
@@ -62,7 +62,7 @@ test_g_static_rec_mutex (void)
g_assert (g_static_rec_mutex_trylock (&test_g_static_rec_mutex_mutex));
thread = g_thread_create (test_g_static_rec_mutex_thread,
GINT_TO_POINTER (42),
- 0, TRUE, TRUE, G_THREAD_PRIORITY_NORMAL);
+ 0, TRUE, TRUE, G_THREAD_PRIORITY_NORMAL, NULL);
g_usleep (G_MICROSEC);
g_assert (g_static_rec_mutex_trylock (&test_g_static_rec_mutex_mutex));
g_usleep (G_MICROSEC);
@@ -136,7 +136,7 @@ test_g_static_private (void)
threads[i] = g_thread_create (test_g_static_private_thread,
GINT_TO_POINTER (i),
0, TRUE, TRUE,
- G_THREAD_PRIORITY_NORMAL);
+ G_THREAD_PRIORITY_NORMAL, NULL);
}
for (i = 0; i < THREADS; i++)
{
@@ -213,7 +213,7 @@ test_g_static_rw_lock ()
{
threads[i] = g_thread_create (test_g_static_rw_lock_thread,
0, 0, TRUE, TRUE,
- G_THREAD_PRIORITY_NORMAL);
+ G_THREAD_PRIORITY_NORMAL, NULL);
}
g_usleep (G_MICROSEC);
test_g_static_rw_lock_run = FALSE;