[PATCH] pthread cancel patch

Thomas Pfaff tpfaff@gmx.net
Mon May 27 03:57:00 GMT 2002


While Rob is reviewing my patches i got a bugfix for the pthread
cancellation code.

2002-05-27  Thomas Pfaff  <tpfaff@gmx.net>

	* thread.h (pthread::cleanup_stack): Renamed from
	cleanup_handlers to cleanup_stack.
	* thread.cc (pthread::pthread): Ditto.
	(__pthread_cleanup_push): Ditto.
	(__pthread_cleanup_pop): Ditto.
	(__pthread_cleanup_pop_all): Ditto.
	(__pthread_cancel): Check the cancelstate and type before
	pthread_equal to make sure that the thread is cancelled the
	right way.
	Unlock the mutex before the cancellation.









-------------- next part --------------
A non-text attachment was scrubbed...
Name: pthread_cancel1.patch
Type: application/octet-stream
Size: 3430 bytes
Desc: 
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020527/5807499d/attachment.obj>


More information about the Cygwin-patches mailing list