Double buffer. More...
#include <DoubleBuffer.hpp>

Public Member Functions | |
| DoubleBuffer (T val) | |
| DoubleBuffer (const DoubleBuffer ©) | |
| T & | get () const | 
| bool | set (T new_val) | 
Double buffer.
Can be thought of as a wrapper class to make a non-atomic type atomically settable (with no locking).
Read/Write realtime safe, many writers safe - but set calls may fail.
Space: 2*sizeof(T) + sizeof(int) + sizeof(void*)
 1.7.1