Best method for Critical Section management in C++

When it comes down to using critical sections in your C++ code you have pretty much standard options. Simply call “EnterCriticalSection” at the start of your function and call “LeaveCriticalSection” at the end of your function. No doubt things will work fine, but this approach is not going to be very scalable. Look at the…