1 --- glib/tests/threadpool-test.c.old 2008-02-12 06:11:21.000000000 +0100
2 +++ glib/tests/threadpool-test.c 2008-02-12 06:11:52.000000000 +0100
8 -/* #define DEBUG_MSG(args) g_printerr args ; g_printerr ("\n"); */
9 +/* #define DEBUG_MSG(x) */
10 +#define DEBUG_MSG(args) g_printerr args ; g_printerr ("\n");
12 #define WAIT 5 /* seconds */
13 #define MAX_THREADS 10
15 DEBUG_MSG (("[unused] stopping unused threads"));
16 g_thread_pool_stop_unused_threads ();
18 - DEBUG_MSG (("[unused] waiting ONE second for threads to die"));
19 + DEBUG_MSG (("[unused] waiting FIVE second for threads to die"));
21 /* Some time for threads to die. */
22 - g_usleep (G_USEC_PER_SEC);
23 + g_usleep (5 * G_USEC_PER_SEC);
25 DEBUG_MSG (("[unused] stopped idle threads, %d remain, %d threads still exist",
26 g_thread_pool_get_num_unused_threads (),