impatomic: move atomic_{thread,signal}_fence() to namespace std
authorBrian Norris <banorris@uci.edu>
Wed, 5 Dec 2012 00:04:40 +0000 (16:04 -0800)
committerBrian Norris <banorris@uci.edu>
Wed, 5 Dec 2012 00:04:40 +0000 (16:04 -0800)
include/impatomic.h
include/stdatomic.h

index b64df7a..cf62f39 100644 (file)
@@ -3841,11 +3841,6 @@ T* atomic<T*>::fetch_sub( ptrdiff_t __v__, memory_order __x__ ) volatile
 
 #endif
 
 
 #endif
 
-
-#ifdef __cplusplus
-} // namespace std
-#endif
-
 #ifdef __cplusplus
 extern "C" {
 #endif
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -3859,4 +3854,9 @@ inline void atomic_signal_fence(memory_order order)
 }
 #endif
 
 }
 #endif
 
+
+#ifdef __cplusplus
+} // namespace std
+#endif
+
 #endif /* __IMPATOMIC_H__ */
 #endif /* __IMPATOMIC_H__ */
index 7b3ff80..d4d2198 100644 (file)
@@ -64,6 +64,9 @@ using std::memory_order_release;
 using std::memory_order_acq_rel;
 using std::memory_order_seq_cst;
 
 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__ */
 #endif /* __cplusplus */
 
 #endif /* __STDATOMIC_H__ */