Seg3D  2.4
Seg3D is a free volume segmentation and processing tool developed by the NIH Center for Integrative Biomedical Computing at the University of Utah Scientific Computing and Imaging (SCI) Institute.
Public Member Functions | List of all members
Core::DefaultEventHandlerContext Class Reference
Inheritance diagram for Core::DefaultEventHandlerContext:
Core::EventHandlerContext

Public Member Functions

virtual void post_event (EventHandle &event)
 
virtual void post_and_wait_event (EventHandle &event)
 
virtual bool process_events ()
 process the events that are queued in the event handler mailbox
 
virtual bool wait_and_process_events ()
 process the events that are queued in the event handler mailbox
 
virtual bool is_eventhandler_thread () const
 
virtual bool start_eventhandler (EventHandler *eventhandler)
 Start the eventhandler thread and start processing events.
 
virtual bool eventhandler_started ()
 Check whether the eventhandler is running.
 
virtual void terminate_eventhandler ()
 Terminate the eventhandler.
 

Member Function Documentation

bool Core::DefaultEventHandlerContext::is_eventhandler_thread ( ) const
virtual

Check whether we are running on the thread that handles the events This function is needed to avoid to post and execute things in an infinite loop.

Implements Core::EventHandlerContext.

void Core::DefaultEventHandlerContext::post_and_wait_event ( EventHandle &  event)
virtual

Post an event onto the event handler stack. This one returns after the thread signals that the event has been executed. The function does the full hand shaking for the synchronization.

Implements Core::EventHandlerContext.

void Core::DefaultEventHandlerContext::post_event ( EventHandle &  event)
virtual

Post an event onto the event handler stack. This one returns immediately after posting the event, and does not wait for the process to finish the event.

Implements Core::EventHandlerContext.


The documentation for this class was generated from the following files: