| author | Helge Bahmann <hcb@chaoticmind.net> | 2011-11-05 16:00:51 (GMT) |
|---|---|---|
| committer | Helge Bahmann <hcb@chaoticmind.net> | 2011-11-05 16:00:51 (GMT) |
| commit | aaa5f08d75db8aa329b7856d890363bb904f4c09 (patch) | |
| tree | 64d31e14b38f4d520da461768be40943ef5fb829 | |
| parent | 59791b540d8fe9b65d80240080082c9bdf257ecc (diff) | |
Fix typo in interlocked.hppmaster
Fix accidental call qualification of memory_order_seq_cst in
interlocked.hpp.
Reported-by: Eichhorn Mike-Joachim <mike.eichhorn@tu-ilmenau.de>
| -rw-r--r-- | boost/atomic/detail/interlocked.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/atomic/detail/interlocked.hpp b/boost/atomic/detail/interlocked.hpp index 9cb3d47..7eb8491 100644 --- a/boost/atomic/detail/interlocked.hpp +++ b/boost/atomic/detail/interlocked.hpp @@ -53,7 +53,7 @@ platform_fence_after_store(memory_order order) static inline void platform_fence_after_load(memory_order) { - if (order == memory_order_seq_cst()) { + if (order == memory_order_seq_cst) { x86_full_fence(void); } } @@ -87,7 +87,7 @@ platform_cmpxchg64_strong(T & expected, T desired, volatile T * ptr) inline void atomic_thread_fence(memory_order) { - if (order == memory_order_seq_cst()) { + if (order == memory_order_seq_cst) { detail::atomic::x86_full_fence(void) } } |
