atomic_compare_exchange_strong
Global function atomic_compare_exchange. Calls compare_exchange on SYCL atomic object.
(1) |
-
Global function atomic_compare_exchange. Calls compare_exchange on SYCL atomic object.
Parameters:-
atomic<T, addressSpace>
object
: The atomic object to compare_exchange with -
T *
expected
-
T
desired
-
cl::sycl::memory_order
success
-
cl::sycl::memory_order
fail
-