spinlock class?

Thomas Pfaff tpfaff@gmx.net
Tue Apr 29 07:06:00 GMT 2003

Joe Buehler wrote:
> If you're talking about the WIN32 CriticalSection functions, 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.

If you are looking for a fork save mutex try out the mutex class in 
To speed up the mutex operations change the type to PTHREAD_MUTEX_NORMAL.


More information about the Cygwin-developers mailing list