[PATCH] cancellation revised

Thomas Pfaff tpfaff@gmx.net
Fri Dec 20 01:58:00 GMT 2002

While Chris is waiting on Rob (or vice versa) i got a new pthread related
patch which will make pthread_join and sem_wait real cancellation points.

TODO: Add testcancel to other cancelation points.


2002-12-20  Thomas Pfaff  <tpfaff@gmx.net>

	* thread.h (WAIT_CANCELED): New define.
	(pthread::cancelable_wait): New static method.
	* thread.cc (pthread::cancelable_wait): Implement.
	(semaphore::Wait): Wait on semaphore and thread cancellation.
	(pthread::join): Wait on joined thread and thread cancellation.
	(semaphore::wait): Add testcancel to check for thread cancellation
	even if the semaphore is available.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cancel.patch
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20021220/c449bcdc/attachment.ksh>

More information about the Cygwin-patches mailing list