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::net::Command::_packetAllocSize, eq::net::Command::alloc(), EQ_MAX, EQINFO, eq::net::Command::getAllocationSize(), and eq::net::Command::isFree().

Here is the call graph for this function:

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 Mon Aug 10 18:58:44 2009 for Equalizer 0.9 by  doxygen 1.5.8