![]() |
Plasma Engine
2.0
|
An atomic boolean variable. This is just a wrapper around an atomic int32 for convenience. More...
#include <AtomicInteger.h>
Public Member Functions | |
| plAtomicBool () | |
| Initializes the bool to 'false'. | |
| plAtomicBool (bool value) | |
| Initializes the object with a value. | |
| plAtomicBool (const plAtomicBool &rhs) | |
| Copy-constructor. | |
| bool | Set (bool value) |
| Sets the bool to the given value and returns its previous value. | |
| void | operator= (bool value) |
| Sets the bool to the given value. | |
| void | operator= (const plAtomicBool &rhs) |
| Sets the bool to the given value. | |
| operator bool () const | |
| Returns the current value. | |
| bool | TestAndSet (bool bExpected, bool bNewValue) |
| Sets the internal value to newValue if the internal value is equal to expected and returns true, otherwise does nothing and returns false. | |
An atomic boolean variable. This is just a wrapper around an atomic int32 for convenience.