[PATCH] spinlock spin with pause instruction

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Mar 11 13:04:00 GMT 2016


On Mar 11 11:28, Václav Haisman wrote:
> Hi.
> 
> I have noticed that Cygwin's spinlock goes into heavy sleeping code
> for each spin. It seems it would be a good idea to actually try to
> spin a bit first. There is this 'pause' instruction which let's the
> CPU make such busy loops be less busy. Here is a patch to do this.

Applied.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20160311/fd2c9ea4/attachment.sig>


More information about the Cygwin-patches mailing list