spinlock class?

Christopher Faylor cgf@redhat.com
Mon Apr 28 15:14:00 GMT 2003

On Mon, Apr 28, 2003 at 10:45:49AM -0400, Joe Buehler wrote:
>Can someone tell me what the fastest way is in Cygwin to do mutual
>exclusion?  I want to do some in-memory logging and disturb timing
>as little as possible.

You mean critical sections, maybe?  Although cygwin uses "spinlocks" in
one or two cases, they are only for edge cases that should be hit rarely.
They're basically a 'if (!test) Sleep (0)'.


More information about the Cygwin-developers mailing list