frysk.event
Class PollEventLoop
java.lang.Object
java.lang.Thread
frysk.event.EventLoop
frysk.event.PollEventLoop
- All Implemented Interfaces:
- Runnable
class PollEventLoop
- extends EventLoop
Implements an event loop.
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 |
fine
private static final Log fine
pollObserver
private PollBuilder pollObserver
PollEventLoop
PollEventLoop()
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