int function ( int arg0 , int arg1 ) { while ( true ) { int loc0 = get ( arg0 ) ; int loc1 = loc0 + arg1 ; if ( compareAndSet ( arg0 , loc0 , loc1 ) ) return loc0 ; } }
atomically adds the given value to the element at index i. concode_field_sep Unsafe unsafe concode_elem_sep int base concode_elem_sep long serialVersionUID concode_elem_sep int[] array concode_elem_sep int scale concode_field_sep long rawIndex concode_elem_sep int getAndIncrement concode_elem_sep void set concode_elem_sep int incrementAndGet concode_elem_sep boolean weakCompareAndSet concode_elem_sep int length concode_elem_sep int decrementAndGet concode_elem_sep boolean compareAndSet concode_elem_sep int get concode_elem_sep void lazySet concode_elem_sep int addAndGet concode_elem_sep String toString concode_elem_sep int getAndSet concode_elem_sep int getAndDecrement