summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glib-2.0/glib-2.0-2.27.5/60_wait-longer-for-threads-to-die.patch
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2010-12-29 14:56:01 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-30 12:07:28 +0000
commit37b15d184bfcc621d14543d039b9a6e2c7565acf (patch)
tree18b2559127b25eaf038c78a7bb071801c8a96f82 /meta/recipes-core/glib-2.0/glib-2.0-2.27.5/60_wait-longer-for-threads-to-die.patch
parentea9f82f33bdc1bc12a6645de8fdecd5eb3890f2e (diff)
downloadpoky-37b15d184bfcc621d14543d039b9a6e2c7565acf.tar.gz
glib-2.0: upgrade to version 2.27.5
upgrade from 2.27.3 to 2.27.5 Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0-2.27.5/60_wait-longer-for-threads-to-die.patch')
-rw-r--r--meta/recipes-core/glib-2.0/glib-2.0-2.27.5/60_wait-longer-for-threads-to-die.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0-2.27.5/60_wait-longer-for-threads-to-die.patch b/meta/recipes-core/glib-2.0/glib-2.0-2.27.5/60_wait-longer-for-threads-to-die.patch
new file mode 100644
index 0000000000..8195bd4922
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/glib-2.0-2.27.5/60_wait-longer-for-threads-to-die.patch
@@ -0,0 +1,31 @@
1copy from OE, said to borrow from Ubuntu. Not in glib-2.0 upstream yet. Add for sanity.
2Added to poky by Kevin Tian <kevin.tian@intel.com>, 06/25/2010
3Rebased for glib-2.27.3 by Dongxiao Xu <dongxiao.xu@intel.com>, 11/16/2010
4
5diff -ruN glib-2.27.3-orig/tests/threadpool-test.c glib-2.27.3/tests/threadpool-test.c
6--- glib-2.27.3-orig/tests/threadpool-test.c 2009-04-01 07:04:21.000000000 +0800
7+++ glib-2.27.3/tests/threadpool-test.c 2010-11-16 12:28:09.002172678 +0800
8@@ -5,8 +5,8 @@
9
10 #include <glib.h>
11
12-#define DEBUG_MSG(x)
13-/* #define DEBUG_MSG(args) g_printerr args ; g_printerr ("\n"); */
14+/* #define DEBUG_MSG(x) */
15+#define DEBUG_MSG(args) g_printerr args ; g_printerr ("\n");
16
17 #define WAIT 5 /* seconds */
18 #define MAX_THREADS 10
19@@ -124,10 +124,10 @@
20 DEBUG_MSG (("[unused] stopping unused threads"));
21 g_thread_pool_stop_unused_threads ();
22
23- DEBUG_MSG (("[unused] waiting ONE second for threads to die"));
24+ DEBUG_MSG (("[unused] waiting FIVE second for threads to die"));
25
26 /* Some time for threads to die. */
27- g_usleep (G_USEC_PER_SEC);
28+ g_usleep (5 * G_USEC_PER_SEC);
29
30 DEBUG_MSG (("[unused] stopped idle threads, %d remain, %d threads still exist",
31 g_thread_pool_get_num_unused_threads (),