NAME

OUX_Dispatcher - Dispatcher which knows about UNIX events.

SYNOPSIS


#include <OUX/dispatch/dispatch.hh>

class OUX_Dispatcher : public OTC_Dispatcher
{
  public:
    friend class OUX_DispatcherDummy;
    static void initialise();
    static int dispatch(int theAction=0);
};

CLASS TYPE

Static

DESCRIPTION

OUX_Dispatcher is a version of the standard dispatcher which adds support for UNIX event sources. These event sources are, alarms, timers, signals and events on file descriptors. Jobs registered directly with the standard dispatcher will only be executed when there are no pending alarms or timers, and no events pending on file descriptors. These jobs are given the name of idle jobs. When the idle jobs registered with the standard dispatcher are run, they will all be processed once, before returning to look for pending timers and events on file descriptors. Signal and alarm events will always preempt idle jobs. Once the signal and alarm events have been serviced, returning of idle jobs will commence again, until all the idle jobs registered at the start of the phase have been returned. Idle jobs registered while processing current idle jobs, will not be processed until the next time through the idle job queue.

INITIALISATION

static void initialise();

DISPATCH

static int dispatch(int theAction=0);

NOTES

This class is kept for backwards compatability only. To initialise the dispatcher so that it is aware of UNIX real time events, use: If you need to dispatch a single job, use:

SEE ALSO

OUX_JobQueue

LIBRARY

OUX

AUTHOR(S)

Graham Dumpleton

COPYRIGHT

Copyright 1993 TELSTRA CORPORATION LIMITED
Copyright 1994 DUMPLETON SOFTWARE CONSULTING PTY LIMITED