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 05:02:21PM -0400, Joe Buehler wrote:
>Christopher Faylor wrote:
>
>>But why not just use a critical section?  It's roughly the same thing,
>>isn't it?
>
>If you're talking about the WIN32 CriticalSection functions,

Yes.

>I don't know WIN32 well enough to be aware of all the subtleties.  I am
>locking a large array that gets duplicated by a fork() and I did not
>want to run into any inheritance problems with WIN32 objects.

That should not be an issue with critical section objects.  I'm pretty sure
they are not inheritable.

cgf


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