XII Release 0.1.0
Loading...
Searching...
No Matches
xiiAtomicBool Class Reference

An atomic boolean variable. This is just a wrapper around an atomic int32 for convenience. More...

#include <AtomicInteger.h>

Public Member Functions

 xiiAtomicBool ()
 Initializes the bool to 'false'.
 
 xiiAtomicBool (bool value)
 Initializes the object with a value.
 
 xiiAtomicBool (const xiiAtomicBool &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 xiiAtomicBool &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.
 

Detailed Description

An atomic boolean variable. This is just a wrapper around an atomic int32 for convenience.


The documentation for this class was generated from the following files: