Use int32_t for OSAtomic calls