Critical section initialization when creating thread-safe singleton (C++)
- by user356145
I'm trying to do the same thing as suggested in this solution:
http://stackoverflow.com/questions/164496/how-can-i-create-a-thread-safe-singleton-pattern-in-windows/164640#164640
But, where should the critical section be initialized and uninitialized?