Package org.slf4j
Class DoubleCheckedInt
java.lang.Object
org.slf4j.DoubleCheckedInt
This class demonstrates that threads accessing the STATE variable always see a consistent value.
During ongoing initialization the observed value is either ONGOING_INITIALIZATION
or one of {SUCCESS, FAILURE}.
Post initialization the observed value is always one of {SUCCESS, FAILURE}.
See also http://jira.qos.ch/browse/SLF4J-167
- Author:
- ceki
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DoubleCheckedInt
public DoubleCheckedInt()
-
-
Method Details
-
getState
-
main
-