This is the mail archive of the
pthreads-win32@sources.redhat.com
mailing list for the pthreas-win32 project.
Re: Deadlock interaction between pthread_cond_check_need_init.c andpthread_cond_destroy.c
- From: Michael Johnson <mjohnson at desknetinc dot com>
- To: pthreads-win32 discussion list <pthreads-win32 at sources dot redhat dot com>
- Date: Thu, 19 Sep 2002 12:33:11 -0400
- Subject: Re: Deadlock interaction between pthread_cond_check_need_init.c andpthread_cond_destroy.c
I see that Mozilla mangled my table that illustrates the deadlock when it
converted it to plain text, instead of handling it intelligently. Here's
the table with the spacing corrected:
Thread A Thread B
Enters ptw32_cond_check_need_init Enters pthread_cond_destroy
EnterCriticalSection(&ptw32_cond_test_init_lock) EnterCriticalSection(&ptw32_cond_list_lock)
(now holds ptw32_cond_test_init_lock) (now holds ptw32_cond_list_lock)
Enters pthread_cond_init Determines that condvar is static initialized
EnterCriticalSection(&ptw32_cond_list_lock) EnterCriticalSection(&ptw32_cond_test_init_lock)
(now waiting to enter ptw32_cond_list_lock) (now waiting to enter ptw32_cond_test_init_lock)
deadlocked
Michael Johnson
DeskNet Inc.
66 Pearl Street, Suite 300
Portland, ME 04101
Harness the Power of Your Content