frysk.event
Class PollEventLoop

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

 class PollEventLoop
extends EventLoop

Implements an event loop.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private static Log fine
           
private  PollBuilder pollObserver
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PollEventLoop()
           
 
Method Summary
 void add(PollEvent fd)
          Add FD to events that should be polled.
 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

pollObserver

private PollBuilder pollObserver
Constructor Detail

PollEventLoop

PollEventLoop()
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(PollEvent fd)
Add FD to events that should be polled.


add

public void add(WaitBuilder waitBuilder)
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