diff options
| author | Patrik Reali <patrik@reali.ch> | 2004-07-31 16:07:20 +0000 |
|---|---|---|
| committer | Patrik Reali <patrik@reali.ch> | 2004-07-31 16:07:20 +0000 |
| commit | a514379815b96e7a6735a9ecaed84c7d6ac0fff3 (patch) | |
| tree | a0348fd9e08624059785a5d9e05afae557988873 /gnu/java/nio/SelectorImpl.java | |
| parent | 4c06e4bf41943a9363fa4796ba8b4046123f8522 (diff) | |
| download | classpath-a514379815b96e7a6735a9ecaed84c7d6ac0fff3.tar.gz | |
native method moved from gnu/java/nio/SelectorImpl to vm/reference/gnu/java/nio/VMSelector
Diffstat (limited to 'gnu/java/nio/SelectorImpl.java')
| -rw-r--r-- | gnu/java/nio/SelectorImpl.java | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/gnu/java/nio/SelectorImpl.java b/gnu/java/nio/SelectorImpl.java index 239a5f8ef..62d066246 100644 --- a/gnu/java/nio/SelectorImpl.java +++ b/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 { |
