added another level of unneeded abstraction

This commit is contained in:
fourtf
2017-02-02 22:15:09 +01:00
parent 93660233fd
commit c6c90d9f50
10 changed files with 330 additions and 237 deletions
+12 -1
View File
@@ -24,7 +24,18 @@ public:
, limit(limit)
, buffer(buffer)
{
;
}
void
clear()
{
std::lock_guard<std::mutex> lock(this->mutex);
this->vector = new std::vector<T>(this->limit + this->buffer);
this->vectorPtr = std::shared_ptr<std::vector<T>>(this->vector);
this->offset = 0;
this->length = 0;
}
// return true if an item was deleted