Equalizer  1.2.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 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.
Returns:
a clone of a command.

Flush all allocated commands.


The documentation for this class was generated from the following file:
Generated on Fri Jun 8 2012 15:44:33 for Equalizer 1.2.1 by  doxygen 1.8.0