singleton-cpp icon indicating copy to clipboard operation
singleton-cpp copied to clipboard

cpp singleton works across dll/exe boundaries.

Results 4 singleton-cpp issues
Sort by recently updated
recently updated
newest added

楼主您好,首先感谢您的代码,不过我有一些问题,在getSharedInstance中使用双重锁的目的是什么呢,尤其是Locks class T那个锁有什么必要性吗,这使我感觉有些困惑。还有就是s_singleTonMutex在什么情况会有线程安全问题呢。

博主你好,我想问一下这个singleton-cpp的使用方法,或者他的使用限制在哪里?我在exe和dll中,通过singleton-cpp实例化同一个对象,发现这个对象的地址不是同一个~,这个能处理吗?

Hey 1st of all, thank you for this all-in-one example! I've been banging my head against a wall for 2 weeks now screaming and losing my mind with this, In...