Skip to content

Commit

Permalink
#120: API/core/atomics/atomic_load remove synopsis + fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinemeyer5 committed Mar 2, 2023
1 parent 411afd8 commit 2536d2c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions docs/source/API/core/atomics/atomic_load.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,11 @@ Usage
Atomically reads the value at the address given by ``ptr_to_value``.

Synopsis
--------

.. cppkokkos:function:: template<class T> T atomic_load(T* const ptr_to_value);
Description
-----------

.. cppkokkos:function:: template<class T> T atomic_load(T* const ptr_to_value);
* Atomically executes ``value = *ptr_to_value; return value;``.
- ``ptr_to_value``: address of the to be updated value.
- ``value``: value at address ``ptr_to_value``.
Atomically executes ``value = *ptr_to_value; return value;``.
* ``ptr_to_value``: address of the to be updated value.
* ``value``: value at address ``ptr_to_value``.

0 comments on commit 2536d2c

Please sign in to comment.