| 1079 | } |
| 1080 | |
| 1081 | inline void fence() { |
| 1082 | #ifdef CL_HPP_CPP11_ATOMICS_SUPPORTED |
| 1083 | std::atomic_thread_fence(std::memory_order_seq_cst); |
| 1084 | #elif _MSC_VER // !CL_HPP_CPP11_ATOMICS_SUPPORTED |
| 1085 | _ReadWriteBarrier(); |
| 1086 | #else // !_MSC_VER && !CL_HPP_CPP11_ATOMICS_SUPPORTED |
| 1087 | __sync_synchronize(); |
| 1088 | #endif // !CL_HPP_CPP11_ATOMICS_SUPPORTED |
| 1089 | } |
| 1090 | } // namespace detail |
| 1091 | |
| 1092 |
no outgoing calls
no test coverage detected