volatile语义及线程安全singleton模式探讨
作者:Scott Meyers and Andrei Alexandrescu 译者: ChengHuige at gmail.com1.引言 详尽的讨论了volatile语义以及如何用C++实现线程安全的Singleton模式。 主要参考Scott Meyers and Andrei Alexandrescu写的“C++ and the Perils of Doubl
转载
2015-07-23 23:32:04 ·
625 阅读 ·
0 评论