mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 20:46:14 +01:00
Stop unused threads before the last test, to make the test terminate
* tests/threadpool-test.c: Stop unused threads before the last test, to make the test terminate reliably. svn path=/trunk/; revision=5477
This commit is contained in:
parent
36917dbee3
commit
9d3c408fbe
@ -1,5 +1,8 @@
|
|||||||
2007-05-02 Matthias Clasen <mclasen@redhat.com>
|
2007-05-02 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* tests/threadpool-test.c: Stop unused threads before
|
||||||
|
the last test, to make the test terminate reliably.
|
||||||
|
|
||||||
* NEWS: Updates
|
* NEWS: Updates
|
||||||
|
|
||||||
2007-05-02 Marco Barisione <marco@barisione.org>
|
2007-05-02 Marco Barisione <marco@barisione.org>
|
||||||
|
@ -405,6 +405,9 @@ test_check_start_and_stop (gpointer user_data)
|
|||||||
test_thread_sort (TRUE);
|
test_thread_sort (TRUE);
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
|
test_thread_stop_unused ();
|
||||||
|
break;
|
||||||
|
case 7:
|
||||||
test_thread_idle_time ();
|
test_thread_idle_time ();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -434,7 +437,7 @@ test_check_start_and_stop (gpointer user_data)
|
|||||||
G_UNLOCK (thread_counter_sort);
|
G_UNLOCK (thread_counter_sort);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (test_number == 6) {
|
if (test_number == 7) {
|
||||||
guint idle;
|
guint idle;
|
||||||
|
|
||||||
idle = g_thread_pool_get_num_unused_threads ();
|
idle = g_thread_pool_get_num_unused_threads ();
|
||||||
|
Loading…
Reference in New Issue
Block a user