eq::net::CommandCache Class Reference

#include <commandCache.h>

List of all members.


Detailed Description

A CommandCache handles the creation of commands for the CommandQueue and the node reschedule queue.

The packets are copied and can therefore be retained in the queues.

Definition at line 23 of file commandCache.h.


Public Member Functions

Commandalloc (Command &command)
 Create a new command.
void release (Command *command)
 Release a command.
void flush ()
 Flush all released commands.
bool empty () const

Member Function Documentation

Command * eq::net::CommandCache::alloc ( Command command  ) 

Create a new command.

Parameters:
command the input command.
Returns:
the command.

Definition at line 36 of file commandCache.cpp.

References eq::net::Command::swap().

Referenced by eq::net::CommandQueue::push(), and eq::net::CommandQueue::pushFront().

Here is the call graph for this function:

Here is the caller graph for this function:

void eq::net::CommandCache::release ( Command command  ) 

Release a command.

Parameters:
command the command.

Definition at line 52 of file commandCache.cpp.

References eq::net::Command::allocate(), eq::net::Command::isValid(), and eq::net::Command::release().

Referenced by eq::net::CommandQueue::flush(), and eq::net::CommandQueue::release().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Flush all released commands.

Definition at line 25 of file commandCache.cpp.

Referenced by eq::net::CommandQueue::flush().

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
Generated on Sat Dec 6 12:01:51 2008 for Equalizer 0.6 by  1.5.5