]> gcc.gnu.org Git - gcc.git/commitdiff
2003-12-02 Michael Koch <konqueror@gmx.de>
authorMichael Koch <konqueror@gmx.de>
Tue, 2 Dec 2003 15:03:21 +0000 (15:03 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Tue, 2 Dec 2003 15:03:21 +0000 (15:03 +0000)
* gnu/java/nio/DatagramChannelImpl.java
(blocking): Initialize with true by default.
* gnu/java/nio/ServerSocketChannelImpl.java
(serverSocket): Made private.
(blocking): Likewise.
(connected): Likewise.
* gnu/java/nio/SocketChannelImpl.java
(connectionPending): Made private.
* gnu/java/nio/FileLockImpl.java
(static): Load native library (needed for classpath).
* gnu/java/nio/SelectorImpl.java
(static): Load native library (needed for classpath).

From-SVN: r74181

libjava/ChangeLog
libjava/gnu/java/nio/DatagramChannelImpl.java
libjava/gnu/java/nio/FileLockImpl.java
libjava/gnu/java/nio/SelectorImpl.java
libjava/gnu/java/nio/ServerSocketChannelImpl.java
libjava/gnu/java/nio/SocketChannelImpl.java

index f652a2cf7b4948ce837bcd46b529ec78fc8c5e35..690a4f7b046718de16fcb5b7e401c201a826b441 100644 (file)
@@ -1,3 +1,18 @@
+2003-12-02  Michael Koch  <konqueror@gmx.de>
+
+       * gnu/java/nio/DatagramChannelImpl.java
+       (blocking): Initialize with true by default.
+       * gnu/java/nio/ServerSocketChannelImpl.java
+       (serverSocket): Made private.
+       (blocking): Likewise.
+       (connected): Likewise.
+       * gnu/java/nio/SocketChannelImpl.java
+       (connectionPending): Made private.
+       * gnu/java/nio/FileLockImpl.java
+       (static): Load native library (needed for classpath).
+       * gnu/java/nio/SelectorImpl.java
+       (static): Load native library (needed for classpath).
+
 2003-12-02  Michael Koch  <konqueror@gmx.de>
 
        * gnu/java/net/protocol/file/Connection.java
index a77355d0ff8bd22076ae8ffe68a1dad67eadb07d..af43256cc28a1672a2ca1775a2b90182f9583cff 100644 (file)
@@ -56,7 +56,7 @@ import java.nio.channels.spi.SelectorProvider;
 public final class DatagramChannelImpl extends DatagramChannel
 {
   private NIODatagramSocket socket;
-  private boolean blocking = false;
+  private boolean blocking = true;
   
   protected DatagramChannelImpl (SelectorProvider provider)
     throws IOException
index 189e03ac81e6acb8222abafd92bec35c1775f3a8..f85d60ad67f02226ff326537f2ffe07f49cc6283 100644 (file)
@@ -42,6 +42,7 @@ import java.io.FileDescriptor;
 import java.io.IOException;
 import java.nio.channels.FileChannel;
 import java.nio.channels.FileLock;
+import gnu.classpath.Configuration;
 
 /**
  * @author Michael Koch
@@ -49,6 +50,15 @@ import java.nio.channels.FileLock;
  */
 public class FileLockImpl extends FileLock
 {
+  static
+  {
+    // load the shared library needed for native methods.
+    if (Configuration.INIT_LOAD_LIBRARY)
+      {
+        System.loadLibrary ("javanio");
+      }
+  }
+  
   private FileDescriptor fd;
   private boolean released;
   
index 60a81f984587f34383d5ec57b8110ebdaa0ca836..05a537afb5e3fd4dd4bd59d8f06c3ec09e9aefd1 100644 (file)
@@ -49,9 +49,19 @@ import java.util.Collections;
 import java.util.HashSet;
 import java.util.Iterator;
 import java.util.Set;
+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;
 
index 89bbdec87464ad4f9de22c148ff389c25e4f8bc6..97943c0ff8e044e227ff50e8265ab42b67e9b706 100644 (file)
@@ -54,9 +54,9 @@ import java.nio.channels.spi.SelectorProvider;
 
 public final class ServerSocketChannelImpl extends ServerSocketChannel
 {
-  NIOServerSocket serverSocket;
-  boolean blocking = true;
-  boolean connected = false;
+  private NIOServerSocket serverSocket;
+  private boolean blocking = true;
+  private boolean connected;
 
   protected ServerSocketChannelImpl (SelectorProvider provider)
     throws IOException
index ae7af3c5908e7e44d8bebad0dd4147dbca57f4fb..46c0d8c0fae48d5270d47b2b0415713f050390b6 100644 (file)
@@ -66,7 +66,7 @@ public final class SocketChannelImpl extends SocketChannel
   private PlainSocketImpl impl;
   private NIOSocket socket;
   private boolean blocking = true;
-  private boolean connectionPending = false;
+  private boolean connectionPending;
 
   SocketChannelImpl (SelectorProvider provider)
     throws IOException
This page took 0.092582 seconds and 5 git commands to generate.