boolean function ( boolean arg0 , boolean arg1 ) { int loc0 = arg0 ? 1 : 0 ; int loc1 = arg1 ? 1 : 0 ; return unsafe . compareAndSwapInt ( this , valueOffset , loc0 , loc1 ) ; }
atomically sets the value to the given updated value if the current value == the expected value.may fail spuriously and does not provide ordering guarantees , so is only rarely an appropriate alternative to compareandset . concode_field_sep long serialVersionUID concode_elem_sep Unsafe unsafe concode_elem_sep long valueOffset concode_elem_sep int value concode_field_sep void set concode_elem_sep boolean compareAndSet concode_elem_sep boolean get concode_elem_sep void lazySet concode_elem_sep String toString concode_elem_sep boolean getAndSet