Package frysk.event

Description of the FRYSK Event Loop.

See:
          Description

Interface Summary
Event The event interface.
ProcEvent The proc event interface.
 

Class Summary
ActionPointEvent Event to be exectued after a task stops due to one or more action points being hit.
EventLoop Implements an event loop.
Request Framework for implementing remote-procedure-call requests executed by the event-loop thread.
RequestStopEvent  
SignalEvent An event due to a signal.
TimerEvent A timer event.
 

Package frysk.event Description

Description of the FRYSK Event Loop.

Overview

The FRYSK event-loop, in conjunction with frysk.sys, provide a set of event driven interface to the linux kernel. The event-loop directly handles the following events:

Each is discussed below.

Timeouts and Count-Down Timers

The event loop provides both once-only, and repeating timers. See TimerEvent for more information.

Signals

The event loop provides signal event notifiers. Note that a signal event is delivered outside of the signal handler. See SignalEvent for more information.

File Descriptors

The event loop provides file descriptor event notifiers. See PollEvent for more information.

Process (wait) Events

By binding calls to frysk.sys.Wait.waitNoHang to the frysk.sys.Sig#CHLD signal using a SignalEvent, wait events can be processed by the event-loop.

Event Starvation

Event Starvation occurs when a single constantly re-occurring event is dispatched in preference to other events. The frysk event-loop addresses this by processing events using two distinct phases:
Doing this ensures that all existing pending events are processed before any new events are scheduled.