From: Rob Pike Date: Fri, 23 Mar 2012 21:12:52 +0000 (+1100) Subject: codewalk/sharemem.xml: fix references to files X-Git-Tag: weekly~57 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ae8d8abfebd11450bde5722f22fc32320660bf6a;p=gostls13.git codewalk/sharemem.xml: fix references to files R=golang-dev, iant CC=golang-dev https://golang.org/cl/5877064 --- diff --git a/doc/codewalk/sharemem.xml b/doc/codewalk/sharemem.xml index 1a669f7b53..d443e176e7 100644 --- a/doc/codewalk/sharemem.xml +++ b/doc/codewalk/sharemem.xml @@ -65,7 +65,7 @@ and then loops passing completed Resources back to the pending channel after appropriate delays. - + First, main makes two channels of *Resource, pending and complete.

Inside main, a new goroutine sends one Resource per URL to pending @@ -75,7 +75,7 @@ The pending and complete channels are passed to each of the Poller goroutines, within which they are known as in and out.
- + StateMonitor will initialize and launch a goroutine that stores the state of each Resource. We will look at this function in detail later.

@@ -83,14 +83,14 @@ For now, the important thing to note is that it returns a channel of State, which is saved as status and passed to the Poller goroutines.
- + Now that it has the necessary channels, main launches a number of Poller goroutines, passing the channels as arguments. The channels provide the means of communication between the main, Poller, and StateMonitor goroutines. - + To add the initial work to the system, main starts a new goroutine that allocates and sends one Resource per URL to pending.