Deadlock interaction between pthread_cond_check_need_init.c and pthread_cond_destroy.c

Michael Johnson mjohnson@desknetinc.com
Thu Sep 19 09:31:00 GMT 2002


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





More information about the Pthreads-win32 mailing list