StackThreads/MP: version 0.77 User's Guide
@ int st_fetch_and_add_int(il, ix); @ long st_fetch_and_add_long(ll, lx); @ st_int_loc_t * il; int ix; @ st_long_loc_t * ll; long lx;
st_fetch_and_add_int
atomically increments the value written at
il by ix and returns the value previously written at il.
st_fetch_and_add_long
is a similar function for
st_long_loc_t *
.