When To Call InitializeCriticalSection
Posted on 2002-04-24
In MSDN, it is said:
The process is responsible for allocating the memory used by a critical section object, which it can do by declaring a variable of type CRITICAL_SECTION. Before using a critical section, some thread of the process must call the InitializeCriticalSection or InitializeCriticalSectionAndSpinCount function to initialize the object.
Does it necessary for each thread which uses the critical section object to call InitializeCriticalSection before calling EnterCriticalSection?