On Fri, Aug 09, 2002 at 03:53:00PM +0200, G?ran Thyni wrote:
> 
> On Thu, Aug 08, 2002 at 05:03:46PM +0200, Oskar Sandberg wrote:
> > We use CircularBuffers - when data is considered to be to large to
> > cache, it sends it to a circular buffer meaning that the when the writer
> > reaches the end of the buffer, it starts over (but makes sure it does
> > not "lap" the position of any reader that already started reading). The
> > "lapping" code is already implemented in CircularBuffer.java, all you
> > need to do is make sure that the writer cannot pass readers that are
> > ahead of it (and vice versa) in a Buffer.
> 
> OK, that was more complex than I thought.
> A bit too complex IMHO.

It is necessary behavior. Besides, you need to implement something like
it for all buffers anyways (java offers no built in "tail -f"
functionality, so that has to be implemented using wait() anyways) making
it work both ways is not a major undertaking.

If this wasn't jobbigt somebody would have done it already...


-- 

Oskar Sandberg
oskar at freenetproject.org

_______________________________________________
devl mailing list
devl at freenetproject.org
http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to