我想请问一下,你是怎么知道bool型别支援single write和 multiple load?参考这个网页:
https://en.cppreference.com/w/c/language/memory_model.html这一段话:When an汢valuation漑f an expression writWhen an汢valuation of an expression writes to a meand another evaluation reads or modifies the samememory location, the expressions are said to氲onf所以data race 是只要有一个 write 搭配其它 read 或write 就会是发生。