SourcePro® 2024.1 |
SourcePro® API Reference Guide |
Atomically manipulates an integral type. More...
#include <rw/tools/atomic.h>
Related Symbols | |
(Note that these are not member symbols.) | |
#define | RW_ATOMIC_INIT(val) |
RWTAtomic provides atomic manipulation of an underlying integral type T. All operations performed on an RWTAtomic instance are atomic.
RWTAtomic is limited to the following integral types and their associated typedefs:
|
inline |
Compares expected to self. If expected is equal to self, desired is assigned to self and true
is returned. If expected is not equal to self, self is assigned to expected and false
is returned.
This function is equivalent to:
|
inline |
Compares expected to self. If expected is equal to self, desired is assigned to self and true
is returned. If expected is not equal to self, self is assigned to expected and false
is returned.
This function is equivalent to:
|
inline |
Adds val to self. Returns the previous value of self.
This function is equivalent to:
|
inline |
Adds val to self. Returns the previous value of self.
This function is equivalent to:
|
inline |
Performs a bitwise AND between val and self, storing the result in self. Returns the previous value of self.
This function is equivalent to:
|
inline |
Performs a bitwise AND between val and self, storing the result in self. Returns the previous value of self.
This function is equivalent to:
|
inline |
Performs a bitwise OR between val and self, storing the result in self. Returns the previous value of self.
This function is equivalent to:
|
inline |
Performs a bitwise OR between val and self, storing the result in self. Returns the previous value of self.
This function is equivalent to:
|
inline |
Subtracts val from self. Returns the previous value of self.
This function is equivalent to:
|
inline |
Subtracts val from self. Returns the previous value of self.
This function is equivalent to:
|
inline |
Performs a bitwise XOR between val and self, storing the result in self. Returns the previous value of self.
This function is equivalent to:
|
inline |
Performs a bitwise XOR between val and self, storing the result in self. Returns the previous value of self.
This function is equivalent to:
|
inline |
Returns the current value of self.
|
inline |
Returns the current value of self.
|
inline |
Returns the current value of self.
This function is equivalent to:
|
inline |
Returns the current value of self.
This function is equivalent to:
|
inline |
Performs a bitwise AND between val and self, storing the result in self. Returns the new value.
|
inline |
Performs a bitwise AND between val and self, storing the result in self. Returns the new value.
|
inline |
Increments self by 1. Returns the new value.
|
inline |
Increments self by 1. Returns the new value.
|
inline |
Increments self by 1. Returns the previous value of self.
|
inline |
Increments self by 1. Returns the new value.
|
inline |
Adds val to self. Returns the new value.
|
inline |
Adds val to self. Returns the new value.
|
inline |
Decrements self by 1. Returns the new value.
|
inline |
Decrements self by 1. Returns the new value.
|
inline |
Decrements self by 1. Returns the previous value of self.
|
inline |
Decrements self by 1. Returns the new value.
|
inline |
Subtracts val from self. Returns the new value.
|
inline |
Subtracts val from self. Returns the new value.
|
inline |
Assigns val to self.
This function is equivalent to:
|
inline |
Assigns val to self.
This function is equivalent to:
|
inline |
Performs a bitwise XOR between val and self, storing the result in self. Returns the new value.
|
inline |
Performs a bitwise XOR between val and self, storing the result in self. Returns the new value.
|
inline |
Performs a bitwise OR between val and self, storing the result in self. Returns the new value.
|
inline |
Performs a bitwise OR between val and self, storing the result in self. Returns the new value.
|
inline |
Assigns val to self.
|
inline |
Assigns val to self.
|
inline |
Assigns val to self. Returns the previous value of self.
This function is equivalent to:
|
inline |
Assigns val to self. Returns the previous value of self.
This function is equivalent to:
|
related |
Initializes an RWTAtomic<T> to the value val.
Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |