diff --git a/AK/Queue.h b/AK/Queue.h index 8ae0fc094b..7a21c51b3a 100644 --- a/AK/Queue.h +++ b/AK/Queue.h @@ -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;