| sun.nio.ch.PollArrayWrapper
PollArrayWrapper | class PollArrayWrapper extends AbstractPollArrayWrapper (Code) | | Manipulates a native array of pollfd structs on Solaris:
typedef struct pollfd {
int fd;
short events;
short revents;
} pollfd_t;
author: Mike McCloskey version: 1.18, 07/05/05 since: 1.4 |
Method Summary | |
void | addEntry(SelChImpl sc) Prepare another pollfd struct for use. | void | free() | void | grow(int newSize) Grows the pollfd array to a size that will accommodate newSize
pollfd entries. | void | initInterrupt(int fd0, int fd1) | public void | interrupt() | int | poll(int numfds, int offset, long timeout) | void | release(int i) | static void | replaceEntry(PollArrayWrapper source, int sindex, PollArrayWrapper target, int tindex) Writes the pollfd entry from the source wrapper at the source index
over the entry in the target wrapper at the target index. |
POLLCONN | final static short POLLCONN(Code) | | |
interruptFD | int interruptFD(Code) | | |
PollArrayWrapper | PollArrayWrapper(int newSize)(Code) | | |
addEntry | void addEntry(SelChImpl sc)(Code) | | Prepare another pollfd struct for use.
|
grow | void grow(int newSize)(Code) | | Grows the pollfd array to a size that will accommodate newSize
pollfd entries. This method does no checking of the newSize
to determine if it is in fact bigger than the old size: it
always reallocates an array of the new size.
|
initInterrupt | void initInterrupt(int fd0, int fd1)(Code) | | |
interrupt | public void interrupt()(Code) | | |
poll | int poll(int numfds, int offset, long timeout)(Code) | | |
release | void release(int i)(Code) | | |
replaceEntry | static void replaceEntry(PollArrayWrapper source, int sindex, PollArrayWrapper target, int tindex)(Code) | | Writes the pollfd entry from the source wrapper at the source index
over the entry in the target wrapper at the target index. The source
array remains unchanged unless the source array and the target are
the same array.
|
|
|