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 b64df7af920dd863fa1c8a21d1e64379c6a164fe..cf62f3960231d37c955aa0f22913005a2d4348a7 100644 (file)
@@ -3841,11 +3841,6 @@ T* atomic<T*>::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__ */
index 7b3ff8004546e77e9e8996d521ebaf46e57aa994..d4d21984ea8a1ea37f5db767a1deffca56a05c21 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::atomic_thread_fence;
+using std::atomic_signal_fence;
+
 #endif /* __cplusplus */
 
 #endif /* __STDATOMIC_H__ */