DeviceMacroProperty has operator overloading for + and - which is incorrect within the API docs as it suggests that this atomically modifies the value (it does not). We should add support for atomic add and sub (sub should use add but negate the value to avoid type restrictions). Both should have return values. We should also update the API docs so they are correct and update the user docs to make it clear which operators modify the value (i.e. -= and += are atomic).
DeviceMacroProperty
has operator overloading for+
and-
which is incorrect within the API docs as it suggests that this atomically modifies the value (it does not). We should add support for atomicadd
andsub
(sub should useadd
but negate the value to avoid type restrictions). Both should have return values. We should also update the API docs so they are correct and update the user docs to make it clear which operators modify the value (i.e.-=
and+=
are atomic).