diff options
author | David Robillard <d@drobilla.net> | 2008-01-01 19:52:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-01-01 19:52:36 +0000 |
commit | cb21a7b08354134307637eb822a3c1ad9cb7ed23 (patch) | |
tree | fed8b9484141e723317a00886b0bd8bc841c9397 /raul/DoubleBuffer.hpp | |
parent | 143d9b1599a82a35165fd8e17f249998f95f15d0 (diff) | |
download | raul-cb21a7b08354134307637eb822a3c1ad9cb7ed23.tar.gz raul-cb21a7b08354134307637eb822a3c1ad9cb7ed23.tar.bz2 raul-cb21a7b08354134307637eb822a3c1ad9cb7ed23.zip |
RAUL code cleanup.
git-svn-id: http://svn.drobilla.net/lad/raul@999 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul/DoubleBuffer.hpp')
-rw-r--r-- | raul/DoubleBuffer.hpp | 6 |
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 |