![]() |
1
9
The standard allows implementing any atomic type (with exception of std::atomic_flag) to be implemented with locks. 即使平台允许某些类型的无锁原子,标准库开发人员也可能没有实现。
如果在使用锁时需要实现一些不同的东西,可以在编译时使用
|
![]() |
2
2
不,假设任何特定平台的
must be consistent
,所以instance方法
|
![]() |
BeeOnRope · 原子是否提供原子行为,而不考虑排序? 7 年前 |