Tizen 2.1 base
[platform/upstream/glib2.0.git] / debian / patches / 60_wait-longer-for-threads-to-die.patch
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
3 @@ -5,8 +5,8 @@
4  
5  #include <glib.h>
6  
7 -#define DEBUG_MSG(x)
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");
11  
12  #define WAIT                5    /* seconds */
13  #define MAX_THREADS         10
14 @@ -124,10 +124,10 @@
15     DEBUG_MSG (("[unused] stopping unused threads"));
16     g_thread_pool_stop_unused_threads ();
17  
18 -   DEBUG_MSG (("[unused] waiting ONE second for threads to die"));
19 +   DEBUG_MSG (("[unused] waiting FIVE second for threads to die"));
20  
21     /* Some time for threads to die. */
22 -   g_usleep (G_USEC_PER_SEC);
23 +   g_usleep (5 * G_USEC_PER_SEC);
24  
25     DEBUG_MSG (("[unused] stopped idle threads, %d remain, %d threads still exist",
26                g_thread_pool_get_num_unused_threads (),