|
lintel 0.2.0
|
#include <PropertyValueStorage.h>
Public Member Functions | |
| PropertyValueStorage () | |
| PropertyValueStorage (const T &value) | |
| T | load () const |
| void | store (const T &value) |
Static Public Member Functions | |
| static constexpr bool | isLockFree () |
Storage for a property value.
For trivially copyable types whose std::atomic<T> is always lock-free the value is held in a std::atomic and read/written without any lock, so that it can be accessed from real-time contexts. All other types (e.g. std::string) fall back to a reader-writer lock.
|
inline |
|
inlineexplicit |
|
inlinestaticconstexpr |
|
inline |