Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/InteractiveComputerGraphics/SPlisHSPlasH
/ addToAtomicReal
Function
addToAtomicReal
SPlisHSPlasH/PF/TimeStepPF.cpp:46–51 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
44
};
45
46
inline void addToAtomicReal(std::atomic<Real> & a, const Real & r)
47
{
48
Real current = a;
49
while (!a.compare_exchange_weak(current, current + r))
50
;
51
}
52
}
53
54
using AtomicRealVec = std::vector < atomic_wrapper<Real> >;
Callers
1
matrixFreeRHS
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected