Is it valid to nest a critical section?
问题 For example, would this be valid? CRITICAL_SECTION cs; ::InitializeCriticalSection( &cs ); ::EnterCriticalSection( &cs ); // First level ::EnterCriticalSection( &cs ); // Second level /* do some stuff */ ::LeaveCriticalSection( &cs ); // Second level ::LeaveCriticalSection( &cs ); // First level ::DeleteCriticalSection( &cs ); Obviously, I would never intentionally do this, but what if this were to come about as a result of function calls such that the "first level" gets called to lock an