diff options
author | Sebastian Wilhelmi <wilhelmi@ira.uka.de> | 2001-05-18 08:44:57 +0000 |
---|---|---|
committer | Sebastian Wilhelmi <wilhelmi@src.gnome.org> | 2001-05-18 08:44:57 +0000 |
commit | 227d18bc469fb00c8c506121c0ae30b453991407 (patch) | |
tree | d4ad5ccf0173fe0485ba14aaed13a9b495c6f395 /tests/thread-test.c | |
parent | a70206f1770b436525fb151e954d0aa60e2ef051 (diff) | |
download | glib-227d18bc469fb00c8c506121c0ae30b453991407.tar.gz |
Renamed g_thread_create to g_thread_create_full and added macro
2001-05-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread.c, gthread.h: Renamed g_thread_create to
g_thread_create_full and added macro g_thread_create, which omits
'stack_size', 'bound' and 'priority' parameters. Also removed
'bound' from GThread struct.
* gthreadpool.h, gthreadpool.c: Adapted GThreadPool to the above
changes. GThreadPool lost the 'priority' and 'bound'
members. g_thread_pool_new the 'stack_size', 'bound' and
'priority' parameters.
* tests/mainloop-test.c, tests/thread-test.c,
tests/threadpool-test.c: Adapted to the above changes.
Diffstat (limited to 'tests/thread-test.c')
-rw-r--r-- | tests/thread-test.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/tests/thread-test.c b/tests/thread-test.c index 20713d348..e3c0d11f5 100644 --- a/tests/thread-test.c +++ b/tests/thread-test.c @@ -27,9 +27,8 @@ test_g_mutex (void) g_assert (g_mutex_trylock (test_g_mutex_mutex)); 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, NULL); + thread = g_thread_create (test_g_mutex_thread, GINT_TO_POINTER (42), + TRUE, NULL); g_usleep (G_USEC_PER_SEC); test_g_mutex_int = 42; G_UNLOCK (test_g_mutex); @@ -68,8 +67,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, NULL); + GINT_TO_POINTER (42), TRUE, NULL); g_usleep (G_USEC_PER_SEC); g_assert (g_static_rec_mutex_trylock (&test_g_static_rec_mutex_mutex)); g_usleep (G_USEC_PER_SEC); @@ -180,9 +178,7 @@ test_g_static_private (void) for (i = 0; i < THREADS; i++) { threads[i] = g_thread_create (test_g_static_private_thread, - GINT_TO_POINTER (i), - 0, TRUE, TRUE, - G_THREAD_PRIORITY_NORMAL, NULL); + GINT_TO_POINTER (i), TRUE, NULL); } /* Busy wait is not nice but that's just a test */ @@ -269,8 +265,7 @@ test_g_static_rw_lock () for (i = 0; i < THREADS; i++) { threads[i] = g_thread_create (test_g_static_rw_lock_thread, - 0, 0, TRUE, TRUE, - G_THREAD_PRIORITY_NORMAL, NULL); + NULL, TRUE, NULL); } g_usleep (G_USEC_PER_SEC); test_g_static_rw_lock_run = FALSE; |