You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Ed Holyat <eh...@OLF.COM> on 2004/07/16 23:40:10 UTC
Patch for Win32 thread deadlock
Patch for Win32 thread deadlock, tested only on multi-processor XP.
The problem occurs if the thread calls apr_thread_exit() thus closing the
shared handle; and then the main thread tries to join the closed thread with
a bad handle or has already joined the thread.
You can not close a handle while there is a process using that
handle in WaitForSingleObject().
"If this handle is closed while the wait is still pending,
the function's behavior is undefined. "
<<win32_thread.diff>>
© 2004 OpenLink Financial
Copyright in this message and any attachments remains with us. It is
confidential and may be legally privileged. If this message is not
intended for you it must not be read, copied or used by you or
disclosed to anyone else. Please advise the sender immediately if
you have received this message in error.
Although this message and any attachments are believed to be free of
any virus or other defect that might affect any computer system into
which it is received and opened, it is the responsibility of the
recipient to ensure that it is virus free and no responsibility
is accepted by Open Link Financial, Inc. for any loss or damage in any
way arising from its use.