Closed vpop closed 8 years ago
Made the lazy initialization of INSTANCE thread-safe by applying the double-checked locking pattern with volatile instance variable.
INSTANCE
volatile
More details about the pattern here.
Made the lazy initialization of
INSTANCE
thread-safe by applying the double-checked locking pattern withvolatile
instance variable.More details about the pattern here.