mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 04:13:11 +00:00
AK: Add Queue::clear() to clear out a Queue.
This commit is contained in:
parent
731f91f1ab
commit
66db6f4f92
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue