quadgrid
0.1
simple cartesian quad grid with particles for c++/octave
Toggle main menu visibility
Loading...
Searching...
No Matches
atomicAdd.h
Go to the documentation of this file.
1
#ifndef MY_ATOMIC_ADD
2
#define MY_ATOMIC_ADD
3
4
//requires c++20
5
6
#include <atomic>
7
8
template
<
typename
T>
9
void
atomicAdd
(T *x,
const
T y)
10
{
11
std::atomic_ref<T> x_ref(*x);
12
x_ref += y;
13
}
14
15
#endif
atomicAdd
void atomicAdd(T *x, const T y)
Definition
atomicAdd.h:9
include
atomicAdd.h
Generated by
1.18.0