Why Nostr? What is Njump?
2023-02-08 08:47:55
in reply to

chenzhiguo on Nostr: 那这一段线程安全吗?class Singleton2{ private static volatile Singleton2 ...

那这一段线程安全吗?class Singleton2{ private static volatile Singleton2 singleton2; private Singleton2()); public static Singleton2 getInstance(){ if(singleton2 != null){ return singleton2; } synchronized (Singleton2.class){ singleton2 = new Singleton2(); } return singleton2;}}
Author Public Key
npub14t5ulke3z0d5gtq6mr2vvu9zszg72fnhfrn36tq7rz0yy0d75xlsch5jn7