return next uid as long concode_field_sep long stop concode_elem_sep Lock mutex concode_elem_sep long start concode_elem_sep long value concode_elem_sep ThreadLocal<Delta> ranges concode_field_sep long update concode_elem_sep int nextInt concode_elem_sep Delta initialValue
long function ( ) { Delta loc0 = ranges . get ( ) ; if ( loc0 . start <= loc0 . stop ) { mutex . lock ( ) ; value = loc0 . update ( value ) ; mutex . unlock ( ) ; } return loc0 . start ++ ; }