AK: Add Queue::clear() to clear out a Queue.

This commit is contained in:
Andreas Kling 2019-07-28 21:21:09 +02:00
parent 731f91f1ab
commit 66db6f4f92

View file

@ -40,6 +40,13 @@ public:
return value;
}
void clear()
{
m_segments.clear();
m_index_into_first = 0;
m_size = 0;
}
private:
static const int segment_size = 1000;