summaryrefslogtreecommitdiff
path: root/gnu/java/nio/SelectorImpl.java
diff options
context:
space:
mode:
authorPatrik Reali <patrik@reali.ch>2004-07-31 16:07:20 +0000
committerPatrik Reali <patrik@reali.ch>2004-07-31 16:07:20 +0000
commita514379815b96e7a6735a9ecaed84c7d6ac0fff3 (patch)
treea0348fd9e08624059785a5d9e05afae557988873 /gnu/java/nio/SelectorImpl.java
parent4c06e4bf41943a9363fa4796ba8b4046123f8522 (diff)
downloadclasspath-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.java15
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
{