diff options
| author | Michael Koch <konqueror@gmx.de> | 2004-09-24 06:41:57 +0000 |
|---|---|---|
| committer | Michael Koch <mkoch@gcc.gnu.org> | 2004-09-24 06:41:57 +0000 |
| commit | 9e54846fac74773abd332da983f911334baa2c41 (patch) | |
| tree | de044ead0279b2f067cae39ad2fe643a03b72d02 /libjava/gnu/java/nio/SelectorImpl.java | |
| parent | 5d865dace2bb4f577bbd3a9b640cf5a55788c153 (diff) | |
| download | gcc-9e54846fac74773abd332da983f911334baa2c41.zip gcc-9e54846fac74773abd332da983f911334baa2c41.tar.gz gcc-9e54846fac74773abd332da983f911334baa2c41.tar.bz2 | |
PipeImpl.java: Use VMPipe for native stuff.
2004-09-24 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/PipeImpl.java: Use VMPipe for native stuff.
* gnu/java/nio/SelectorImpl.java: Use VMSelector for native stuff.
* gnu/java/nio/VMPipe.java,
gnu/java/nio/VMSelector.java:
New files.
* gnu/java/nio/natPipeImplEcos.cc,
gnu/java/nio/natPipeImplPosix.cc,
gnu/java/nio/natPipeImplWin32.cc:
Ported to VMPipe.
* gnu/java/nio/natSelectorImplEcos.cc,
gnu/java/nio/natSelectorImplPosix.cc,
gnu/java/nio/natSelectorImplWin32.cc:
Ported to VMSelector.
* Makefile.am: Added new files gnu/java/nio/VMPipe.java and
gnu/java/nio/VMSelector.java.
* Makefile.in: Regenerated.
From-SVN: r88014
Diffstat (limited to 'libjava/gnu/java/nio/SelectorImpl.java')
| -rw-r--r-- | libjava/gnu/java/nio/SelectorImpl.java | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/libjava/gnu/java/nio/SelectorImpl.java b/libjava/gnu/java/nio/SelectorImpl.java index 239a5f8..62d0662 100644 --- a/libjava/gnu/java/nio/SelectorImpl.java +++ b/libjava/gnu/java/nio/SelectorImpl.java @@ -53,14 +53,6 @@ import gnu.classpath.Configuration; public class SelectorImpl extends AbstractSelector { - static - { - // load the shared library needed for native methods. - if (Configuration.INIT_LOAD_LIBRARY) - { - System.loadLibrary ("javanio"); - } - } private Set keys; private Set selected; @@ -140,11 +132,6 @@ public class SelectorImpl extends AbstractSelector return select (0); } - // A timeout value of 0 means block forever. - private static native int implSelect (int[] read, int[] write, - int[] except, long timeout) - throws IOException; - private final int[] getFDsAsArray (int ops) { int[] result; @@ -237,7 +224,7 @@ public class SelectorImpl extends AbstractSelector try { begin(); - result = implSelect (read, write, except, timeout); + result = VMSelector.select (read, write, except, timeout); } finally { |
