aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-02-23 06:32:29 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-02-23 06:32:29 +0800
commitc70f26c34bfaeb2a0737db371eeec5404abd3e84 (patch)
treefb7dcda4b3831859ca82c75e0a09e4af60017837
parent351903ad90942abecccf363f97a6639c74ef2e58 (diff)
downloadgsoc2013-evolution-c70f26c34bfaeb2a0737db371eeec5404abd3e84.tar
gsoc2013-evolution-c70f26c34bfaeb2a0737db371eeec5404abd3e84.tar.gz
gsoc2013-evolution-c70f26c34bfaeb2a0737db371eeec5404abd3e84.tar.bz2
gsoc2013-evolution-c70f26c34bfaeb2a0737db371eeec5404abd3e84.tar.lz
gsoc2013-evolution-c70f26c34bfaeb2a0737db371eeec5404abd3e84.tar.xz
gsoc2013-evolution-c70f26c34bfaeb2a0737db371eeec5404abd3e84.tar.zst
gsoc2013-evolution-c70f26c34bfaeb2a0737db371eeec5404abd3e84.zip
Wait a lot lot longer for threads to finish.
2001-02-23 Not Zed <NotZed@Ximian.com> * e-msgport.c (e_thread_destroy): Wait a lot lot longer for threads to finish. svn path=/trunk/; revision=8352
-rw-r--r--e-util/ChangeLog5
-rw-r--r--e-util/e-msgport.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index 797ea0a5ea..b001b9493e 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-23 Not Zed <NotZed@Ximian.com>
+
+ * e-msgport.c (e_thread_destroy): Wait a lot lot longer for
+ threads to finish.
+
2001-02-08 Not Zed <NotZed@Ximian.com>
* e-memory.c (EMemChunk): Changed to allocate raw blocks for the
diff --git a/e-util/e-msgport.c b/e-util/e-msgport.c
index d252670ad0..dabf638b48 100644
--- a/e-util/e-msgport.c
+++ b/e-util/e-msgport.c
@@ -334,7 +334,7 @@ void e_thread_destroy(EThread *e)
case E_THREAD_QUEUE:
case E_THREAD_DROP:
/* if we have a thread, 'kill' it */
- while (e->id != E_THREAD_NONE && tries < 5) {
+ while (e->id != E_THREAD_NONE && tries < 500) {
if (e->waiting > 0) {
pthread_t id = e->id;
e->id = E_THREAD_NONE;
@@ -353,7 +353,7 @@ void e_thread_destroy(EThread *e)
busy = e->id != E_THREAD_NONE;
break;
case E_THREAD_NEW:
- while (e->id_list && tries < 5) {
+ while (e->id_list && tries < 500) {
info = e->id_list->data;
if (!info->busy) {
e->id_list = g_list_remove(e->id_list, info);