我想請問一下,你是怎麼知道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 就會是發生。