Equalizer
1.2.1
|
A command cache handles the reuse of allocated packets for a node. More...
#include <commandCache.h>
Public Member Functions | |
CO_API Command & | alloc (NodePtr node, LocalNodePtr localNode, const uint64_t size) |
CO_API Command & | clone (Command &from) |
void | flush () |
Flush all allocated commands. | |
Friends | |
std::ostream & | operator<< (std::ostream &, const CommandCache &) |
A command cache handles the reuse of allocated packets for a node.
Commands are retained and released whenever they are not directly processed, e.g., when pushed to another thread using a CommandQueue.
Definition at line 36 of file commandCache.h.
CO_API Command& co::CommandCache::alloc | ( | NodePtr | node, |
LocalNodePtr | localNode, | ||
const uint64_t | size | ||
) |
CO_API Command& co::CommandCache::clone | ( | Command & | from | ) |
void co::CommandCache::flush | ( | ) |
Flush all allocated commands.