00001 //<<<<<< INCLUDES >>>>>> 00002 00003 #include "VisFramework/VisFrameworkBase/interface/VisQueue.h" 00004 #include "VisFramework/VisFrameworkBase/interface/debug.h" 00005 #include <classlib/utils/Callback.h> 00006 00007 //<<<<<< PRIVATE DEFINES >>>>>> 00008 //<<<<<< PRIVATE CONSTANTS >>>>>> 00009 //<<<<<< PRIVATE TYPES >>>>>> 00010 //<<<<<< PRIVATE VARIABLE DEFINITIONS >>>>>> 00011 //<<<<<< PUBLIC VARIABLE DEFINITIONS >>>>>> 00012 //<<<<<< CLASS STRUCTURE INITIALIZATION >>>>>> 00013 00014 IG_DEFINE_STATE_ELEMENT (VisQueue, "Services/Framework/Elements/EventQueue"); 00015 00016 //<<<<<< PRIVATE FUNCTION DEFINITIONS >>>>>> 00017 //<<<<<< PUBLIC FUNCTION DEFINITIONS >>>>>> 00018 //<<<<<< MEMBER FUNCTION DEFINITIONS >>>>>> 00019 00021 VisQueue::VisQueue (IgState *state) 00022 : TSqueue<lat::Callback> (1000, 1), m_state (state) 00023 { ASSERT (m_state); m_state->put (s_key, this); } 00024 00026 VisQueue::~VisQueue (void) 00027 { ASSERT (m_state); m_state->detach (s_key); }