use volatile when replacing Interlocked*

Corinna Vinschen
Sat Jul 12 15:35:00 GMT 2008

On Jul 12 06:25, Eric Blake wrote:
> Hash: SHA1
> Based on a recent patch to the win32 headers
> (, the Interlocked*
> functions in winbase.h are now properly prototyped to take volatile
> arguments.  This patch makes cygwin match.
> 2008-07-12  Eric Blake  <>
> 	Fix usage of recently fixed Interlocked* functions.
> 	* winbase.h (ilockincr, ilockdecr, ilockexch, ilockcmpexch): Add
> 	volatile qualifier, to match Interlocked* functions.

You missed to attach the patch, apparantly :)


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

More information about the Cygwin-patches mailing list