This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: winbase.h (ilockexch)
I should have googled a bit more before I sent the patch. It seems that even
though xchg could be used it is not being used becasue it is slower than
cmpxchg imlementation of InterlockedExchange. I thus withdraw the patch.
VH.
On Tue, 31 May 2005, Christopher Faylor wrote:
> On Wed, Jun 01, 2005 at 12:52:26AM +0200, Vaclav Haisman wrote:
> >I think that ilockexch() in winbase.h should look like what is in my
> >patch. Explicit lock prefix is not needed because xchg instruction
> >sets LOCK# signal implicitly.
>
> A similar implementation in the linux kernel seems to disagree with you.
>
> cgf
>