INTRODUCTION Overview Download and Install Quick Start Documentation Publications NONFRAMEWORK CODE Driver Interfaces Drivers Libraries Utilities FRAMEWORK CODE Interfaces Components Libraries Utilities Full Software Listings DEVELOPER Tutorials Examples Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
hydroiceutil::EventLoop Class Reference
Inherits hydroiceutil::JobQueue.
Detailed DescriptionThis is a convenience class which makes the JobQueue appear like an event loop. Uses specialized EventJob jobs to dispatch events through the JobQueue. This class queues events and executes them. For a class which does not execute the events, see EventQueue. Typically, an event loop has a single execution thread to ensure that the events are delivered in the order in which they were added. This class does not enforce this convention and leaves it up to the user to decide (the default size of the thread pool in JobQueue::Config is 1). EventLoop offers a facility to store event receiver ID's which can be used later to dispatch events. All public methods utilizing the receiver registry are thread safe. Member Function Documentation
Registers receiver with specified ID. ID can be any string. If a receiver with the specified ID is already registered, it's overwritten. If you want to check for uniqueness first, use
Executes an EventJob which sends an Event of type References postEvent().
Executes an EventJob which sends an event References hydroiceutil::JobQueue::add().
Adds the event References hydroiceutil::JobQueue::add(). Referenced by postEvent().
Unregisters receiver with specified ID. If a receiver with the specified ID is not registered the request is quietly ignored. The documentation for this class was generated from the following files:
|
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)