unneeded volatile since atomic ops ensure barrier