diff options
author | David Robillard <d@drobilla.net> | 2015-03-16 22:50:11 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-03-16 22:50:11 +0000 |
commit | cd3bb9933361ebea980be1cae79152d99d3dd067 (patch) | |
tree | de900b3e307881f72b0b6bb3b2670aca4bdba5cb /raul/SRSWQueue.hpp | |
parent | bdce855660310f6c012415e2c709b2e66a4f5254 (diff) | |
download | raul-cd3bb9933361ebea980be1cae79152d99d3dd067.tar.gz raul-cd3bb9933361ebea980be1cae79152d99d3dd067.tar.bz2 raul-cd3bb9933361ebea980be1cae79152d99d3dd067.zip |
Fix launching GUI with no engine.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@5640 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul/SRSWQueue.hpp')
-rw-r--r-- | raul/SRSWQueue.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/raul/SRSWQueue.hpp b/raul/SRSWQueue.hpp index 36c0f5d..754cccd 100644 --- a/raul/SRSWQueue.hpp +++ b/raul/SRSWQueue.hpp @@ -60,10 +60,10 @@ public: inline void pop(); private: - std::atomic<size_t> _front; ///< Index to front of queue (circular) - std::atomic<size_t> _back; ///< Index to back of queue (one past last element) (circular) - const size_t _size; ///< Size of `_objects` (you can store _size-1 objects) - T* const _objects; ///< Fixed array containing queued elements + std::atomic<size_t> _front; ///< Index to front of queue + std::atomic<size_t> _back; ///< Index to back of queue (one past end) + const size_t _size; ///< Size of `_objects` (at most _size-1) + T* const _objects; ///< Fixed array containing queued elements }; template<typename T> |