
23 Aug
2011
23 Aug
'11
11:58 a.m.
On 23/08/2011 08:53, Gottlob Frege wrote:
On Mon, Aug 22, 2011 at 5:15 PM, Mathias Gaunard <mathias.gaunard@ens-lyon.org> wrote:
struct my_singleton { private: my_singleton() {} my_singleton(const my_singleton&);
public: static my_singleton& instance() { static my_singleton ins; return ins; } };
which is simple, short, fast to compile, and thread-safe.
Thread-safe under which version of the language?
The only one that knows about threads.