adds 1 to the counter . progress condition : wait-free population oblivious o 1 above is only true on architectures that support fetch-and-add natively , and only with this fix : intrinsify getandincrement consistency model : sequentially consistent with decrement and sum concode_field_sep int kNumCounters concode_elem_sep int CACHE_LINE concode_elem_sep AtomicLongArray counters concode_field_sep void decrement concode_elem_sep void clear concode_elem_sep long sum concode_elem_sep int tid2hash
void function ( ) { counters . getAndIncrement ( tid2hash ( ) ) ; }