13
0

Ensure ringbuffers are never copy-constructed

This commit is contained in:
Robin Gareus 2020-12-07 02:47:56 +01:00
parent bc9b94dfab
commit 13e6fdb6b3
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 6 additions and 0 deletions

View File

@ -125,6 +125,9 @@ protected:
mutable gint write_idx;
mutable gint read_idx;
guint size_mask;
private:
RingBuffer (RingBuffer const&);
};
template<class T> /*LIBPBD_API*/ guint

View File

@ -120,6 +120,9 @@ class /*LIBPBD_API*/ RingBufferNPT
size_t size;
mutable gint write_ptr;
mutable gint read_ptr;
private:
RingBufferNPT (RingBufferNPT const&);
};
template<class T> /*LIBPBD_API*/ size_t