A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://kokkos.github.io/kokkos-core-wiki/API/core/atomics/atomic_assign.html below:

atomic_assign - Kokkos documentation

Back to top

Toggle table of contents sidebar

atomic_assign

Defined in header <Kokkos_Atomic.hpp> which is included from <Kokkos_Core.hpp>

Usage
atomic_assign(&obj, desired);

Atomically replaces the current value of obj with desired.

Description
template<class T>
void atomic_assign(T *ptr, std::type_identity_t<T> val);

Atomically writes val into *ptr.

{ *ptr = val; }

Parameters:
  • ptr – address of the object whose value is to be replaced

  • val – the value to store in the referenced object

Returns:

(nothing)

Deprecated since version 4.5: Use atomic_store() instead.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4