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
This commit is contained in:
Not Zed
2001-02-22 22:32:29 +00:00
committed by Michael Zucci
parent 351903ad90
commit c70f26c34b
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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);