Implementation of thread safe Singleton:
Solution-1: By using mutex and atomic
Solution-2: By using call_once and lambda function
sheikhazad / singleton_thread-safe-multiple-solutions Goto Github PK
View Code? Open in Web Editor NEWImplementation of thread safe Singleton: Solution-1: By using mutex and atomic Solution-2: By using call_once and lambda function