Singleton_Thread-Safe-Multiple-Solutions Implementation of thread safe Singleton: Solution-1: By using mutex and atomic Solution-2: By using call_once and lambda function