Sane C++ Libraries
C++ Platform Abstraction Libraries
SC::Atomic< T > Struct Template Reference

Atomic variables (only for int and bool for now). More...

Detailed Description

template<typename T>
struct SC::Atomic< T >

Atomic variables (only for int and bool for now).


Example:

Atomic<bool> test = true;
SC_TEST_EXPECT(test.load());
test.exchange(false);
SC_TEST_EXPECT(not test.load());
#define SC_TEST_EXPECT(e)
Records a test expectation (eventually aborting or breaking o n failed test)
Definition: Testing.h:113

The documentation for this struct was generated from the following file: