Thankfully, GCC (GNU Compiler Collection, from version 4.1 onwards) provides atomic built-ins (see Resources) that you can use to implement CAS operations for both x86 and x86-64 platforms.
GCC (GNUCompilerCollection,4.1和更高版本)提供几个原子性的内置函数(见参考资料),可以使用它们为x86 和 x86-64平台实现CAS操作。
Thankfully, GCC (GNU Compiler Collection, from version 4.1 onwards) provides atomic built-ins (see Resources) that you can use to implement CAS operations for both x86 and x86-64 platforms.
GCC (GNUCompilerCollection,4.1和更高版本)提供几个原子性的内置函数(见参考资料),可以使用它们为x86 和 x86-64平台实现CAS操作。
应用推荐