这段代码能正常工作吗?atomic_int和_Atomic(int)有什么区别
struct a {
int xyz;
volatile _Atomic(unsigned int) status;
int eee;
};
threadOne(void *)
{
a->status |= QW;
}
threadTwo(void *)
{
a->status |= ER;
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句