This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: spinlock class?


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)'.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]