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). From-SVN: r74181
This commit is contained in:
committed by
Michael Koch
parent
a74e3b7707
commit
598e749df6
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user