Skip to content

Latest commit

 

History

History
4 lines (4 loc) · 183 Bytes

File metadata and controls

4 lines (4 loc) · 183 Bytes

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