diff options
author | David Robillard <d@drobilla.net> | 2020-11-27 17:57:34 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-27 21:42:51 +0100 |
commit | 976d937b2fdf24c76b6b5575afc6cbe222a87b63 (patch) | |
tree | 970a3b535f371d7578abf4bb15108541fec66cbf /src/Queue.hpp | |
parent | f0cb106ae65598690f5a3fb2108e61feff99c7c8 (diff) | |
download | patchage-976d937b2fdf24c76b6b5575afc6cbe222a87b63.tar.gz patchage-976d937b2fdf24c76b6b5575afc6cbe222a87b63.tar.bz2 patchage-976d937b2fdf24c76b6b5575afc6cbe222a87b63.zip |
Clean up Queue special member functions
Diffstat (limited to 'src/Queue.hpp')
-rw-r--r-- | src/Queue.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Queue.hpp b/src/Queue.hpp index f1fef95..fbfc3b9 100644 --- a/src/Queue.hpp +++ b/src/Queue.hpp @@ -27,13 +27,20 @@ class Queue public: /** @param size Size in number of elements */ explicit Queue(size_t size); + + Queue(const Queue&) = delete; + Queue& operator=(const Queue&) = delete; + + Queue(Queue&&) = delete; + Queue& operator=(Queue&&) = delete; + ~Queue(); // Any thread: inline size_t capacity() const { return _size - 1; } - // Write thread(s): + // Write thread: inline bool full() const; inline bool push(const T& obj); |