frysk.event
Class WaitEventLoop

java.lang.Object
  extended by java.lang.Thread
      extended by frysk.event.EventLoop
          extended by frysk.event.WaitEventLoop
All Implemented Interfaces:
Runnable

 class WaitEventLoop
extends EventLoop

Implements an event loop using waitpid.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private static Log fine
           
private  SignalBuilder signalBuilder
           
private  WaitBuilder waitBuilder
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
WaitEventLoop()
           
 
Method Summary
 void add(WaitBuilder waitBuilder)
          Add support for the notification of waitpid events.
protected  void block(long millisecondTimeout)
          Block for up-to TIMEOUT, or until an event arrives, or possibly no-reason.
protected  void signalAdd(Signal sig)
          Add Signal to the signals that can be received.
protected  void signalEmpty()
          Clear the signal set being used by the event-loop.
 
Methods inherited from class frysk.event.EventLoop
add, add, add, execute, factory, isCurrentThread, processSignal, remove, remove, remove, requestStop, run, runPending, runPolling, start
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fine

private static final Log fine

waitBuilder

private WaitBuilder waitBuilder

signalBuilder

private SignalBuilder signalBuilder
Constructor Detail

WaitEventLoop

WaitEventLoop()
Method Detail

signalEmpty

protected void signalEmpty()
Description copied from class: EventLoop
Clear the signal set being used by the event-loop.

Specified by:
signalEmpty in class EventLoop

signalAdd

protected void signalAdd(Signal sig)
Description copied from class: EventLoop
Add Signal to the signals that can be received.

Specified by:
signalAdd in class EventLoop

add

public void add(WaitBuilder waitBuilder)
Description copied from class: EventLoop
Add support for the notification of waitpid events.

Specified by:
add in class EventLoop

block

protected void block(long millisecondTimeout)
Description copied from class: EventLoop
Block for up-to TIMEOUT, or until an event arrives, or possibly no-reason.

Specified by:
block in class EventLoop