Why does a boolean need to be atomic?

前端 未结 0 1317
死守一世寂寞
死守一世寂寞 2021-02-18 22:59

In rust, there is such a thing as an AtomicBool. It is defined as:

A boolean type which can be safely shared between threads.

I understa

相关标签:
回答
  • 消灭零回复
提交回复
热议问题