2004-01-23 Michael Koch <konqueror@gmx.de>
* java/io/FileDescriptor.java (lock): New method. (tryLock): New method. (unlock): New method. * java/io/natFileDescriptorEcos.cc (lock): New method. (tryLock): New method. (unlock): New method. * java/io/natFileDescriptorPosix.cc (lock): New method. (tryLock): New method. (unlock): New method. * java/io/natFileDescriptorWin32.cc (lock): New method. (tryLock): New method. (unlock): New method. From-SVN: r76421
This commit is contained in:
parent
0e707673d2
commit
ca1d829f31
5 changed files with 110 additions and 0 deletions
|
@ -208,6 +208,10 @@ public final class FileDescriptor
|
|||
native long getLength() throws IOException;
|
||||
native void setLength(long pos) throws IOException;
|
||||
|
||||
native void lock(long pos, int len, boolean shared) throws IOException;
|
||||
native boolean tryLock(long pos, int lent, boolean shared) throws IOException;
|
||||
native void unlock(long pos, int len) throws IOException;
|
||||
|
||||
// When collected, close.
|
||||
protected void finalize() throws Throwable
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue