apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed Holyat <ehol...@OLF.COM>
Subject Patch for Win32 thread deadlock
Date Fri, 16 Jul 2004 21:40:10 GMT


	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.



Mime
View raw message