summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glib-2.0/glib-2.0-2.24.1/60_wait-longer-for-threads-to-die.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0-2.24.1/60_wait-longer-for-threads-to-die.patch')
-rw-r--r--meta/recipes-core/glib-2.0/glib-2.0-2.24.1/60_wait-longer-for-threads-to-die.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0-2.24.1/60_wait-longer-for-threads-to-die.patch b/meta/recipes-core/glib-2.0/glib-2.0-2.24.1/60_wait-longer-for-threads-to-die.patch
new file mode 100644
index 0000000000..1676b3e257
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/glib-2.0-2.24.1/60_wait-longer-for-threads-to-die.patch
@@ -0,0 +1,29 @@
1# copy from OE, said to borrow from Ubuntu. Not in glib-2.0 upstream yet. Add for sanity.
2#
3# by Kevin Tian <kevin.tian@intel.com>, 06/25/2010
4--- glib/tests/threadpool-test.c.old 2008-02-12 06:11:21.000000000 +0100
5+++ glib/tests/threadpool-test.c 2008-02-12 06:11:52.000000000 +0100
6@@ -5,8 +5,8 @@
7
8 #include <glib.h>
9
10-#define DEBUG_MSG(x)
11-/* #define DEBUG_MSG(args) g_printerr args ; g_printerr ("\n"); */
12+/* #define DEBUG_MSG(x) */
13+#define DEBUG_MSG(args) g_printerr args ; g_printerr ("\n");
14
15 #define WAIT 5 /* seconds */
16 #define MAX_THREADS 10
17@@ -124,10 +124,10 @@
18 DEBUG_MSG (("[unused] stopping unused threads"));
19 g_thread_pool_stop_unused_threads ();
20
21- DEBUG_MSG (("[unused] waiting ONE second for threads to die"));
22+ DEBUG_MSG (("[unused] waiting FIVE second for threads to die"));
23
24 /* Some time for threads to die. */
25- g_usleep (G_USEC_PER_SEC);
26+ g_usleep (5 * G_USEC_PER_SEC);
27
28 DEBUG_MSG (("[unused] stopped idle threads, %d remain, %d threads still exist",
29 g_thread_pool_get_num_unused_threads (),