简体   繁体   English

atomic_thread_fence不是std的成员

[英]atomic_thread_fence is not a member of std

Compiling with: 编译:

g++ -std=c++0x -Wall -pthread test2.cc -o hello

I'm getting this error: 我收到此错误:

test2.cc: atomic_thread_fence is not a member of std

I am using g++ 4.5.2 in Ubuntu. 我在Ubuntu中使用g ++ 4.5.2。 What am I missing? 我想念什么?

您在test2.cc中是否具有以下内容?

#include <atomic>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 这种std :: atomic_thread_fence的使用是否正确? - Is this use of std::atomic_thread_fence correct? std :: __ Atomic_thread_fence(大写A)正确吗? - std::_Atomic_thread_fence (with capital A) is this correct? 为什么这个 `std::atomic_thread_fence` 工作 - Why does this `std::atomic_thread_fence` work 为什么std :: atomic_thread_fence具有“ C”链接? - Why does std::atomic_thread_fence have “C” linkage? std :: atomic_thread_fence具有未定义的引用 - std::atomic_thread_fence has undefined reference 在具有相同顺序的原子加载/存储之前使用 std::atomic_thread_fence 总是多余的吗? - Is using std::atomic_thread_fence right before an atomic load/store with the same order always redundant? 获取条件std :: atomic_thread_fence的优点和缺点是什么? - Benefits & drawbacks of as-needed conditional std::atomic_thread_fence acquire? 在 x86 上实现 std::atomic_thread_fence(std::memory_order_seq_cst) 没有额外的性能损失 - An implementation of std::atomic_thread_fence(std::memory_order_seq_cst) on x86 without extra performance penalties atomic_thread_fence(memory_order_release) 与使用memory_order_acq_rel 有什么不同? - Is atomic_thread_fence(memory_order_release) different from using memory_order_acq_rel? atomic_thread_fence(memory_order_seq_cst) 是否具有完整内存屏障的语义? - Does atomic_thread_fence(memory_order_seq_cst) have the semantics of a full memory barrier?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM