MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / fence

Function fence

include/internal/CL/cl.hpp:1081–1089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

getDefaultMethod · 0.85
getDefaultMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected