Equalizer 1.0

co::CommandCache Class Reference

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

#include <commandCache.h>

Collaboration diagram for co::CommandCache:

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 36 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.
CO_API Command& co::CommandCache::clone ( Command from)
Returns:
a clone of a command.
void co::CommandCache::flush ( )

Flush all allocated commands.


The documentation for this class was generated from the following file:
Generated on Sun May 8 2011 19:11:08 for Equalizer 1.0 by  doxygen 1.7.3