bug 204: implement Queue::DequeueAll.

This commit is contained in:
Mathieu Lacage committed 2008-06-04 09:22:37 -07:00
1 parent 92f2ed110a
commit 1a5577bc3d
2 files changed
+6 -3

No files matched your search

+5 -2
View File
@@ -100,8 +100,11 @@ Queue::Dequeue (void)
void
Queue::DequeueAll (void)
{
NS_LOG_FUNCTION_NOARGS ();
NS_ASSERT_MSG (0, "Don't know what to do with dequeued packets!");
NS_LOG_FUNCTION (this);
while (!IsEmpty ())
{
Dequeue ();
}
}
Ptr<Packet>
+1 -1
View File
@@ -69,7 +69,7 @@ public:
Ptr<Packet> Peek (void) const;
/**
* XXX Doesn't do anything right now, think its supposed to flush the queue
* Flush the queue.
*/
void DequeueAll (void);
/**