From d603b33c531caee4250a0c56c18c589fdb69331e Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Mon, 17 Oct 2005 16:18:31 +0000 Subject: fixed Channel::lastWritten = written --- doc/reference/ExamplesPart.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/reference/ExamplesPart.tex b/doc/reference/ExamplesPart.tex index 4be32641aa..c90ecffa24 100644 --- a/doc/reference/ExamplesPart.tex +++ b/doc/reference/ExamplesPart.tex @@ -6383,7 +6383,7 @@ the node which conceptually forms the top of the list. Empty linked lists start with a dummy node, whose successor is \code{null}. The channel class uses a linked list to store data that has been sent -but not read yet. In the opposite direction, a threads that +but not read yet. At the opposite end, threads that wish to read from an empty channel, register their presence by incrementing the \code{nreaders} field and waiting to be notified. \begin{lstlisting} @@ -6395,7 +6395,7 @@ class Channel[a] { var next: LinkedList[a] = null; } private var written = new LinkedList[a]; - private var lastWritten = new LinkedList[a]; + private var lastWritten = written; private var nreaders = 0; def write(x: a) = synchronized { -- cgit v1.2.3