APIdia Launch Partner
Top Fields Constructors Methods
sun.nio.ch

pack-priv final Class EventFD

extends Object
Class Inheritance
Imports
java.io.IOException

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
EventFD()

Creates a blocking eventfd object with initial value zero.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv int
efd()

private static native int
pack-priv void
pack-priv void
set()

private static native int

Returns:

the number of bytes written; should equal 8
set0
(int efd)

Writes the value 1 to the eventfd object as a long in the native byte order of the platform.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

efdback to summary
private final int efd

Constructor Detail

EventFDback to summary
pack-priv EventFD() throws IOException

Creates a blocking eventfd object with initial value zero.

Method Detail

closeback to summary
pack-priv void close() throws IOException
efdback to summary
pack-priv int efd()
eventfd0back to summary
private static native int eventfd0() throws IOException
resetback to summary
pack-priv void reset() throws IOException
setback to summary
pack-priv void set() throws IOException
set0back to summary
private static native int set0(int efd) throws IOException

Writes the value 1 to the eventfd object as a long in the native byte order of the platform.

Returns:int

the number of bytes written; should equal 8