|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.sys.Poll
public final class Poll
Poll like interface for waiting on kernel events. This object, loosely based on the poll and pselect interfaces, provides a call blocks until a UNIX event (signal, FD ready), the timeout expires, or an unexpected interrupt occures. The client (which extends this object) is notified via the abstract notify methods.
Nested Class Summary | |
---|---|
static class |
Poll.Fds
Manage the file descriptors watched by the poll call. |
Field Summary | |
---|---|
protected static Poll.Fds |
pollFds
|
protected static SignalSet |
signalSet
Set of signals checked during poll. |
Constructor Summary | |
---|---|
Poll()
|
Method Summary | |
---|---|
static void |
add(Signal sig)
Add Sig to the set of signals checked during poll. |
private static void |
addSignalHandler(Signal sig)
|
static void |
empty()
Empty the set of signals, and file descriptors, checked during poll. |
static void |
poll(PollBuilder observer,
long timeout)
Poll the system for either FD, or signal events. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static SignalSet signalSet
protected static Poll.Fds pollFds
Constructor Detail |
---|
public Poll()
Method Detail |
---|
private static void addSignalHandler(Signal sig)
public static void add(Signal sig)
public static void empty()
public static void poll(PollBuilder observer, long timeout)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |