#include <PacketPool.h>
Public Member Functions | |
| PacketPool () | |
| ~PacketPool () | |
| Packet * | GetPointer (void) |
| void | ReleasePointer (Packet *p) |
| void | ClearPool (void) |
Static Public Member Functions | |
| static PacketPool * | Instance () |
Private Attributes | |
| BasicDataStructures::Queue< Packet * > | pool |
| SimpleMutex | poolMutex |
Static Private Attributes | |
| static PacketPool | I |
The PacketPool class as multiple roles :
|
|
Constructor |
|
|
Destructor |
|
|
Clear the Packet Pool |
|
|
Get Memory for a packet
|
|
|
Retrieve the unique instance of a PacketPool.
|
|
|
Free Memory for a packet
|
|
|
Singleton Pattern unique instance |
|
|
Store packets |
|
|
Exclusive access to the pool |
1.4.2