summaryrefslogtreecommitdiffstats
path: root/raul/DoubleBuffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'raul/DoubleBuffer.hpp')
-rw-r--r--raul/DoubleBuffer.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/raul/DoubleBuffer.hpp b/raul/DoubleBuffer.hpp
index 4f3907d..4f8f152 100644
--- a/raul/DoubleBuffer.hpp
+++ b/raul/DoubleBuffer.hpp
@@ -51,13 +51,11 @@ public:
_read_val = &_vals[0];
}
- inline T& get() const
- {
+ inline T& get() const {
return *_read_val.get();
}
- inline bool set(T new_val)
- {
+ inline bool set(T new_val) {
if (_state.compare_and_exchange(RAUL_DB_READ_WRITE, RAUL_DB_READ_LOCK)) {
// locked _vals[1] for write