[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Note on PushbackInputStream
From: |
John Keiser |
Subject: |
Re: Note on PushbackInputStream |
Date: |
21 Aug 2001 12:03:42 -0400 |
On 21 Aug 2001 13:21:54 -0400, Stuart Ballard wrote:
> John Keiser wrote:
>
> > That's some nice code. But how could super.unread() ever get called if
> > read() is in its loop? They're both synchronized on this.
>
> AIUI, wait() causes all monitors to be temporarily released. So a call
> to unread() will go through as soon as read() hits the line that says
> wait().
>
> But ICBVW...
>
Verily, you speak the truth. You have seen deep into the heart of my
fallacy and pierced it to the core. Thanks :)
--John
- Note on PushbackInputStream, Tom Tromey, 2001/08/06
- Re: Note on PushbackInputStream, Bryce McKinlay, 2001/08/10
- Re: Note on PushbackInputStream, John Keiser, 2001/08/18
- Re: Note on PushbackInputStream, Dalibor Topic, 2001/08/19
- Re: Note on PushbackInputStream, Tom Tromey, 2001/08/20
- Re: Note on PushbackInputStream, Dalibor Topic, 2001/08/21
- Re: Note on PushbackInputStream, John Keiser, 2001/08/21
- Re: Note on PushbackInputStream, Stuart Ballard, 2001/08/21
- Re: Note on PushbackInputStream,
John Keiser <=
- Re: Note on PushbackInputStream, Tom Tromey, 2001/08/21
- Re: Note on PushbackInputStream, Dalibor Topic, 2001/08/22