title: Make Meyers' Singleton thread safe and fast with lazy evaluation
body: <p>So i read a lot about <em>why</em> this implementation isn't thread-safe. But I didn't find the answer how to make it thread safe and fast? The variant of make it thread safe is to add mutex(or in some cases just critical section will be enough), but it will make this method much more slower. So is there a variant to make this code thread safe and fast, or at least now as slow as adding mutex there? </p>
  
  <pre><code>static Singleton&amp; getInstance()
  {
       static Singleton singleton;
       return singleton;
  }
  </code></pre>
  
  <p>PS: and yes, I also read a lot about thread safe Singletom implementation when we use Singleton pointer as a member of the class, the question is about this particular implementation of Singleton, without pointers and new and using lazy evaluation.</p>