equal
deleted
inserted
replaced
27 |
27 |
28 import java.io.IOException; |
28 import java.io.IOException; |
29 import java.nio.channels.*; |
29 import java.nio.channels.*; |
30 import java.nio.channels.spi.*; |
30 import java.nio.channels.spi.*; |
31 import java.util.*; |
31 import java.util.*; |
32 import sun.misc.*; |
|
33 |
32 |
34 /** |
33 /** |
35 * An implementation of Selector for Linux 2.6+ kernels that uses |
34 * An implementation of Selector for Linux 2.6+ kernels that uses |
36 * the epoll event notification facility. |
35 * the epoll event notification facility. |
37 */ |
36 */ |
48 |
47 |
49 // Maps from file descriptors to keys |
48 // Maps from file descriptors to keys |
50 private Map<Integer,SelectionKeyImpl> fdToKey; |
49 private Map<Integer,SelectionKeyImpl> fdToKey; |
51 |
50 |
52 // True if this Selector has been closed |
51 // True if this Selector has been closed |
53 private volatile boolean closed = false; |
52 private volatile boolean closed; |
54 |
53 |
55 // Lock for interrupt triggering and clearing |
54 // Lock for interrupt triggering and clearing |
56 private final Object interruptLock = new Object(); |
55 private final Object interruptLock = new Object(); |
57 private boolean interruptTriggered = false; |
56 private boolean interruptTriggered = false; |
58 |
57 |