[PATCH] Add unsigned long Interlocked functions

Robert Collins rbcollins@cygwin.com
Wed Mar 19 23:20:00 GMT 2003


Looks good to me. Chris, you happy with the winbase stuff?

Rob

On Thu, 2003-03-20 at 00:49, Thomas Pfaff wrote:
> 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
> 	instead.
> 	(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.
-- 
GPG key available at: <http://users.bigpond.net.au/robertc/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20030319/ca3765d8/attachment.sig>


More information about the Cygwin-patches mailing list