I hereby claim:
- I am somethingnew2-0 on github.
- I am petercollins (https://keybase.io/petercollins) on keybase.
- I have a public key ASCRqlDsMJx9stSZY6-hNlCY1CydkxvFnjyy3caJshbHMwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import java.util.concurrent.locks.ReentrantLock; | |
public class Singleton implements Runnable { | |
private static Singleton INSTANCE; | |
private static ReentrantLock LOCK = new ReentrantLock(); | |
private Singleton() { } | |
public Singleton getInstance() { | |
new Thread(this).run(); |