summaryrefslogtreecommitdiff
path: root/lib/gras_impl/buffer_queue.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gras_impl/buffer_queue.hpp')
-rw-r--r--lib/gras_impl/buffer_queue.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/gras_impl/buffer_queue.hpp b/lib/gras_impl/buffer_queue.hpp
index a120101..0e6be9e 100644
--- a/lib/gras_impl/buffer_queue.hpp
+++ b/lib/gras_impl/buffer_queue.hpp
@@ -14,7 +14,7 @@ struct BufferQueue : std::queue<SBuffer>
{
BufferQueue(void)
{
- SBufferDeleter deleter = boost::bind(&BufferQueue::push, this, _1);
+ SBufferDeleter deleter = boost::bind(&BufferQueue::push_back, this, _1);
_token = SBufferToken(new SBufferDeleter(deleter));
}
@@ -27,6 +27,11 @@ struct BufferQueue : std::queue<SBuffer>
}
}
+ void push_back(const SBuffer &buff)
+ {
+ this->push(buff);
+ }
+
void allocate_one(const size_t num_bytes)
{
SBufferConfig config;