< prev index next >

src/java.base/linux/classes/sun/nio/ch/EPoll.java

Print this page
rev 49271 : [mq]: selector-cleanup


  92      */
  93     static int getDescriptor(long eventAddress) {
  94         return unsafe.getInt(eventAddress + OFFSETOF_FD);
  95     }
  96 
  97     /**
  98      * Returns event->events
  99      */
 100     static int getEvents(long eventAddress) {
 101         return unsafe.getInt(eventAddress + OFFSETOF_EVENTS);
 102     }
 103 
 104     // -- Native methods --
 105 
 106     private static native int eventSize();
 107 
 108     private static native int eventsOffset();
 109 
 110     private static native int dataOffset();
 111 
 112     static native int epollCreate() throws IOException;
 113 
 114     static native int epollCtl(int epfd, int opcode, int fd, int events);
 115 
 116     static native int epollWait(int epfd, long pollAddress, int numfds)
 117         throws IOException;
 118 
 119     static {
 120         IOUtil.load();
 121     }
 122 }


  92      */
  93     static int getDescriptor(long eventAddress) {
  94         return unsafe.getInt(eventAddress + OFFSETOF_FD);
  95     }
  96 
  97     /**
  98      * Returns event->events
  99      */
 100     static int getEvents(long eventAddress) {
 101         return unsafe.getInt(eventAddress + OFFSETOF_EVENTS);
 102     }
 103 
 104     // -- Native methods --
 105 
 106     private static native int eventSize();
 107 
 108     private static native int eventsOffset();
 109 
 110     private static native int dataOffset();
 111 
 112     static native int create() throws IOException;
 113 
 114     static native int ctl(int epfd, int opcode, int fd, int events);
 115 
 116     static native int wait(int epfd, long pollAddress, int numfds, int timeout)
 117         throws IOException;
 118 
 119     static {
 120         IOUtil.load();
 121     }
 122 }
< prev index next >