Equalizer  1.4.1
Public Member Functions | Friends
co::CommandCache Class Reference

A command cache handles the reuse of allocated packets for a node. More...

#include <commandCache.h>

List of all members.

Public Member Functions

CO_API Commandalloc (NodePtr node, LocalNodePtr localNode, const uint64_t size)
CO_API Commandclone (Command &from)
void flush ()
 Flush all allocated commands.

Friends

std::ostream & operator<< (std::ostream &, const CommandCache &)

Detailed Description

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 35 of file commandCache.h.


Member Function Documentation

CO_API Command& co::CommandCache::alloc ( NodePtr  node,
LocalNodePtr  localNode,
const uint64_t  size 
)
Returns:
a new command.
Returns:
a clone of a command.

Flush all allocated commands.


The documentation for this class was generated from the following file:
Generated on Mon Nov 26 2012 14:41:50 for Equalizer 1.4.1 by  doxygen 1.7.6.1