[PATCH] Add unsigned long Interlocked functions

Thomas Pfaff tpfaff@gmx.net
Wed Mar 19 13:49:00 GMT 2003

2003-03-19  Thomas Pfaff  <tpfaff@gmx.net>

	* thread.cc (pthread_cond::Wait): Remove typecasts for unsigned
	long values when calling Interlocked functions. Use new UL functions
	(pthread_mutex::_Lock): Ditto.
	(pthread_mutex::_TryLock): Ditto.
	* winbase.h (InterlockedIncrementUL): New inline function for type
	safety with unsigned parameters.
	(InterlockedDecrementUL): Ditto.
	(InterlockedExchangeUL): Ditto.
	(InterlockedCompareExchangeUL): Ditto.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Interlocked.patch
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20030319/851c7fe7/attachment.ksh>

More information about the Cygwin-patches mailing list