What's wrong with the following code?
public static Singleton Instance
{
get
{
if (_instance == null)
{
lock (_instanceLock)
{
_instance = new Singleton();
}
...全文
433打赏收藏
解决两个C++的问题
What's wrong with the following code? public static Singleton Instance { get { if (_instance == null) { lock (_instanceLock) { _instance = new Singleton(); }