Thread safe lazy construction of a singleton in C++
help you fix your problem Basically, you're asking for synchronized
creation of a singleton, without using any synchronization
(previously-constructed variables). In general, no, this is not possible.
You need something available for synchronization.
Date : January 24 2021, 02:01 AM , By : evegter