You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 31, 2025. It is now read-only.
Phillip Allen Lane edited this page Nov 27, 2023
·
1 revision
DotMP provides an atomics API. All atomics are static methods in the DotMP.Atomic static class. The following operations are supported:
Operation
DotMP Function
a += b
DotMP.Atomic.Add(ref a, b)
a -= b
DotMP.Atomic.Sub(ref a, b)
a &= b
DotMP.Atomic.And(ref a, b)
a |= b
DotMP.Atomic.Or(ref a, b)
++a
DotMP.Atomic.Inc(ref a)
--a
DotMP.Atomic.Dec(ref a)
There are overloads for each of these methods for the int, uint, long, and ulong types. For DotMP versions prior to v1.6.0-pre2, Sub is only implemented for signed types (int and long).