eq::net::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

Commandalloc (NodePtr node, NodePtr localNode, const uint64_t size)
void flush ()
 Flush all allocated commands.

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


Member Function Documentation

Command & eq::net::CommandCache::alloc ( NodePtr  node,
NodePtr  localNode,
const uint64_t  size 
)
Returns:
a new command.

Definition at line 81 of file commandCache.cpp.

References EQ_MAX, and EQINFO.

void eq::net::CommandCache::flush (  ) 

Flush all allocated commands.

Definition at line 56 of file commandCache.cpp.


The documentation for this class was generated from the following files:
Generated on Sat Feb 6 13:08:40 2010 for Equalizer 0.9.1 by  doxygen 1.6.1