CMS 3D CMS Logo

VisQueue Class Reference

Queue of commands to be executed by visualisation analysis module by VisQueueProcessor. More...

#include <VisFramework/VisFrameworkBase/interface/VisQueue.h>

Inheritance diagram for VisQueue:

IgStateElement TSqueue< lat::Callback >

List of all members.

Public Member Functions

 VisQueue (IgState *state)
 Construct the queue.
 ~VisQueue (void)
 Destroy the object and detach it from the state.

Private Member Functions

 IG_DECLARE_STATE_ELEMENT (VisQueue)

Private Attributes

IgStatem_state


Detailed Description

Queue of commands to be executed by visualisation analysis module by VisQueueProcessor.

VisQueue is a thread-safe queue for communicating actions to be executed by the visualisation analysis module in the framework thread. This state element is created early in the initialisation in the application IgState. Clients should use this element to queue commands for the VisQueueProcessor instead of accessing the latter directly. The processor pops commands off this queue and executes them in its own thread context.

The queue has first-in first-out (FIFO) logic: queued commands are executed in the order they were inserted. It can be pushed into by any thread.

Use VisQueueProcessor::scheduleNextEvent() to queue a command to advance to the next event and VisQueueProcessor::scheduleAbort() to queue a command to abort the run. Both are normal commands and thus executed in FIFO order relative to other commands.

Definition at line 38 of file VisQueue.h.


Constructor & Destructor Documentation

VisQueue::VisQueue ( IgState state  ) 

Construct the queue.

Definition at line 21 of file VisQueue.cc.

References ASSERT, m_state, and IgState::put().

00022     : TSqueue<lat::Callback> (1000, 1), m_state (state)
00023 { ASSERT (m_state); m_state->put (s_key, this); }

VisQueue::~VisQueue ( void   ) 

Destroy the object and detach it from the state.

Definition at line 26 of file VisQueue.cc.

References ASSERT, IgState::detach(), and m_state.

00027 { ASSERT (m_state); m_state->detach (s_key); }


Member Function Documentation

VisQueue::IG_DECLARE_STATE_ELEMENT ( VisQueue   )  [private]


Member Data Documentation

IgState* VisQueue::m_state [private]

Definition at line 48 of file VisQueue.h.

Referenced by VisQueue(), and ~VisQueue().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:35:35 2009 for CMSSW by  doxygen 1.5.4