< prev index next > src/java.base/windows/classes/sun/nio/ch/WEPollPoller.java
Print this page
this.handle = WEPoll.create();
this.event = (read) ? EPOLLIN : EPOLLOUT;
this.address = WEPoll.allocatePollArray(MAX_EVENTS_TO_POLL);
}
+ @Override
+ void close() {
+ WEPoll.close(handle);
+ WEPoll.freePollArray(address);
+ }
+
@Override
void implRegister(int fdVal) throws IOException {
int err = WEPoll.ctl(handle, EPOLL_CTL_ADD, fdVal, (event | EPOLLONESHOT));
if (err != 0)
throw new IOException("epoll_ctl failed: " + err);
< prev index next >