diff options
author | Sebastian Wilhelmi <wilhelmi@ira.uka.de> | 2000-09-01 13:03:23 +0000 |
---|---|---|
committer | Sebastian Wilhelmi <wilhelmi@src.gnome.org> | 2000-09-01 13:03:23 +0000 |
commit | 64bbfbb6dae9a6f9f5b839b85beb42c3d7f2a790 (patch) | |
tree | a15ffff00cbecb08378efd5d4ecca39a00abbd74 /tests/threadpool-test.c | |
parent | 21a498b1a54aa59bd0a3c4e6985307ec326683d2 (diff) | |
download | glib-64bbfbb6dae9a6f9f5b839b85beb42c3d7f2a790.tar.gz |
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/threadpool-test.c')
-rw-r--r-- | tests/threadpool-test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/threadpool-test.c b/tests/threadpool-test.c index 9044e4bbd..6608d5f04 100644 --- a/tests/threadpool-test.c +++ b/tests/threadpool-test.c @@ -33,17 +33,17 @@ main (int argc, g_thread_init (NULL); pool1 = g_thread_pool_new (thread_pool_func, 3, 0, FALSE, - G_THREAD_PRIORITY_NORMAL, FALSE, NULL); + G_THREAD_PRIORITY_NORMAL, FALSE, NULL, NULL); pool2 = g_thread_pool_new (thread_pool_func, 5, 0, FALSE, - G_THREAD_PRIORITY_LOW, FALSE, NULL); + G_THREAD_PRIORITY_LOW, FALSE, NULL, NULL); pool3 = g_thread_pool_new (thread_pool_func, 7, 0, FALSE, - G_THREAD_PRIORITY_LOW, TRUE, NULL); + G_THREAD_PRIORITY_LOW, TRUE, NULL, NULL); for (i = 0; i < RUNS; i++) { - g_thread_pool_push (pool1, GUINT_TO_POINTER (1)); - g_thread_pool_push (pool2, GUINT_TO_POINTER (1)); - g_thread_pool_push (pool3, GUINT_TO_POINTER (1)); + g_thread_pool_push (pool1, GUINT_TO_POINTER (1), NULL); + g_thread_pool_push (pool2, GUINT_TO_POINTER (1), NULL); + g_thread_pool_push (pool3, GUINT_TO_POINTER (1), NULL); } g_thread_pool_free (pool1, FALSE, TRUE); |