代码搜索:singleton

找到约 4,696 项符合「singleton」的源代码

代码结果 4,696
www.eeworm.com/read/181243/5277721

java singleton.java

package headfirst.singleton.subclass; public class Singleton { protected static Singleton uniqueInstance; // other useful instance variables here protected Singleton() {} public static sync
www.eeworm.com/read/181243/5277724

java singleton.java

package headfirst.singleton.dcl; // // Danger! This implementation of Singleton not // guaranteed to work prior to Java 5 // public class Singleton { private volatile static Singleton uniqueInstan
www.eeworm.com/read/181243/5277726

java singleton.java

package headfirst.singleton.stat; public class Singleton { private static Singleton uniqueInstance = new Singleton(); private Singleton() {} public static Singleton getInstance() { return un
www.eeworm.com/read/181243/5277728

java singleton.java

package headfirst.singleton.threadsafe; public class Singleton { private static Singleton uniqueInstance; // other useful instance variables here private Singleton() {} public static synchr
www.eeworm.com/read/181243/5277729

java singleton.java

package headfirst.singleton.classic; // NOTE: This is not thread safe! public class Singleton { private static Singleton uniqueInstance; // other useful instance variables here private Single
www.eeworm.com/read/180222/5288512

cpp singleton.cpp

//: C10:Singleton.cpp // From Thinking in C++, 2nd Edition // Available at http://www.BruceEckel.com // (c) Bruce Eckel 2000 // Copyright notice in Copyright.txt // Static member of same type, en
www.eeworm.com/read/178761/5312667

cpp singleton.cpp

//////////////////////////////////////////////////////////////////////////////// // The Loki Library // Copyright (c) 2001 by Andrei Alexandrescu // This code accompanies the book: // Alexandrescu
www.eeworm.com/read/178761/5312687

h singleton.h

//////////////////////////////////////////////////////////////////////////////// // The Loki Library // Copyright (c) 2001 by Andrei Alexandrescu // This code accompanies the book: // Alexandrescu
www.eeworm.com/read/178761/5312692

cpp singleton.cpp

//////////////////////////////////////////////////////////////////////////////// // The Loki Library // Copyright (c) 2001 by Andrei Alexandrescu // This code accompanies the book: // Alexandrescu
www.eeworm.com/read/178761/5312712

h singleton.h

//////////////////////////////////////////////////////////////////////////////// // The Loki Library // Copyright (c) 2001 by Andrei Alexandrescu // This code accompanies the book: // Alexandrescu