public int getAndSetLo ( int lo ) { while ( true ) { long encoded = get ( ) ; long update = encodeLo ( encoded , lo ) ; if ( compareAndSet ( encoded , update ) ) return getLo ( encoded ) ; } }
Atomically sets the lo value without changing the hi value .