摘要: volatile ~~~ include include volatile int total{ 0 }; void func(int) { for (int i = 0; i include include std::atomic_int total{ 0 }; // 或 std::atomic 阅读全文
posted @ 2020-04-17 15:19 ghx_kevin 阅读(1444) 评论(0) 推荐(0) 编辑