Commit 31f0451e by Luca Barbieri Committed by Tom Tromey

re PR libgcj/21136 ([4.0 only] tryLock waits for the lock, and lock doesn't)

2005-04-26  Luca Barbieri  <luca.barbieri@gmail.com>

	PR libgcj/21136:
	* gnu/java/nio/channels/FileChannelImpl.java (tryLock): Pass
	'false' to native lock().
	(lock): Pass 'true' to native lock().

From-SVN: r98792
parent 583db391
2005-04-26 Luca Barbieri <luca.barbieri@gmail.com>
PR libgcj/21136:
* gnu/java/nio/channels/FileChannelImpl.java (tryLock): Pass
'false' to native lock().
(lock): Pass 'true' to native lock().
2005-04-26 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java:
......
......@@ -419,7 +419,7 @@ public final class FileChannelImpl extends FileChannel
try
{
begin();
lock(position, size, shared, true);
lock(position, size, shared, false);
completed = true;
return new FileLockImpl(this, position, size, shared);
}
......@@ -451,7 +451,7 @@ public final class FileChannelImpl extends FileChannel
try
{
boolean lockable = lock(position, size, shared, false);
boolean lockable = lock(position, size, shared, true);
completed = true;
return (lockable
? new FileLockImpl(this, position, size, shared)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment