Just use std::atomic please.