Use a typedef to declare extern atomic variables