Use boost atomic object