2003-10-12 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/PipeImpl.java (SourceChannelImpl): New inner class. (SinkChannelImpl): New inner class. (sink): New member variable. (source): New member variable. (PipeImpl): Add SelectorProvider argument, implemented. (nativeInit): New method. (sink): Return sink channel. (source): Return source channel. * gnu/java/nio/SelectorProviderImpl.java (openPipe): Give provider as argument to PipeImpl constructor. * java/nio/channels/spi/SelectorProvider.java (pr): Removed. (systemDefaultProvider): New member variable. (provider): Made it synchronized, use property java.nio.channels.spi.SelectorProvider. * gnu/java/nio/natPipeImpl.cc: New file. * Makefile.am (nat_source_files): Added gnu/java/nio/natPipeImpl.cc. * Makefile.in: Regenerated. From-SVN: r72397
This commit is contained in:
parent
b77d1698d9
commit
81bc077a39
7 changed files with 208 additions and 21 deletions
|
@ -1,5 +1,5 @@
|
|||
/* SelectorProviderImpl.java --
|
||||
Copyright (C) 2002 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002, 2003 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
|
@ -60,7 +60,7 @@ public class SelectorProviderImpl extends SelectorProvider
|
|||
public Pipe openPipe ()
|
||||
throws IOException
|
||||
{
|
||||
return new PipeImpl ();
|
||||
return new PipeImpl (this);
|
||||
}
|
||||
|
||||
public AbstractSelector openSelector ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue