From aa5eb7b5cb804a25b547fc0ae733498cbb167276 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Tue, 4 Dec 2012 16:04:40 -0800 Subject: [PATCH] impatomic: move atomic_{thread,signal}_fence() to namespace std --- include/impatomic.h | 10 +++++----- include/stdatomic.h | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/include/impatomic.h b/include/impatomic.h index b64df7af..cf62f396 100644 --- a/include/impatomic.h +++ b/include/impatomic.h @@ -3841,11 +3841,6 @@ T* atomic::fetch_sub( ptrdiff_t __v__, memory_order __x__ ) volatile #endif - -#ifdef __cplusplus -} // namespace std -#endif - #ifdef __cplusplus extern "C" { #endif @@ -3859,4 +3854,9 @@ inline void atomic_signal_fence(memory_order order) } #endif + +#ifdef __cplusplus +} // namespace std +#endif + #endif /* __IMPATOMIC_H__ */ diff --git a/include/stdatomic.h b/include/stdatomic.h index 7b3ff800..d4d21984 100644 --- a/include/stdatomic.h +++ b/include/stdatomic.h @@ -64,6 +64,9 @@ using std::memory_order_release; using std::memory_order_acq_rel; using std::memory_order_seq_cst; +using std::atomic_thread_fence; +using std::atomic_signal_fence; + #endif /* __cplusplus */ #endif /* __STDATOMIC_H__ */ -- 2.34.1