could use atomics even.