r11929 - /desktop/experimental/glib2.0/debian/patches/60_wait-longer-for-threads-to-die.patch

lool at users.alioth.debian.org lool at users.alioth.debian.org
Thu Jul 12 19:36:58 UTC 2007


Author: lool
Date: Thu Jul 12 19:36:58 2007
New Revision: 11929

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=11929
Log:
* Really add 60_wait-longer-for-threads-to-die.

Added:
    desktop/experimental/glib2.0/debian/patches/60_wait-longer-for-threads-to-die.patch

Added: desktop/experimental/glib2.0/debian/patches/60_wait-longer-for-threads-to-die.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/glib2.0/debian/patches/60_wait-longer-for-threads-to-die.patch?rev=11929&op=file
==============================================================================
--- desktop/experimental/glib2.0/debian/patches/60_wait-longer-for-threads-to-die.patch (added)
+++ desktop/experimental/glib2.0/debian/patches/60_wait-longer-for-threads-to-die.patch Thu Jul 12 19:36:58 2007
@@ -1,0 +1,28 @@
+Index: glib2.0-2.13.7/tests/threadpool-test.c
+===================================================================
+--- glib2.0-2.13.7.orig/tests/threadpool-test.c	2007-07-12 21:33:49.000000000 +0200
++++ glib2.0-2.13.7/tests/threadpool-test.c	2007-07-12 21:33:30.000000000 +0200
+@@ -5,8 +5,8 @@
+ 
+ #include <glib.h>
+ 
+-#define DEBUG_MSG(x)  
+-/* #define DEBUG_MSG(args) g_printerr args ; g_printerr ("\n");  */
++/* #define DEBUG_MSG(x) */
++#define DEBUG_MSG(args) g_printerr args ; g_printerr ("\n");
+ 
+ #define WAIT                5    /* seconds */
+ #define MAX_THREADS         10
+@@ -124,10 +124,10 @@
+    DEBUG_MSG (("[unused] stopping unused threads"));
+    g_thread_pool_stop_unused_threads ();
+ 
+-   DEBUG_MSG (("[unused] waiting ONE second for threads to die"));
++   DEBUG_MSG (("[unused] waiting FIVE second for threads to die"));
+ 
+    /* Some time for threads to die. */
+-   g_usleep (G_USEC_PER_SEC); 
++   g_usleep (5 * G_USEC_PER_SEC); 
+    
+    DEBUG_MSG (("[unused] stopped idle threads, %d remain, %d threads still exist",
+ 	       g_thread_pool_get_num_unused_threads (), 




More information about the pkg-gnome-commits mailing list