diff options
author | Russ Cox <rsc@golang.org> | 2009-01-30 14:39:31 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-01-30 14:39:31 -0800 |
commit | befc40a4e68bd0af08b6e8020598c85a9c235665 (patch) | |
tree | 23faccc99f2fcc5de337a139fb7b812a8a2f3137 /src/lib/once.go | |
parent | a43f0e293191f7adf93bc9e754baeb14af9fd930 (diff) | |
download | golang-befc40a4e68bd0af08b6e8020598c85a9c235665.tar.gz |
update go code tree to new func rules.
R=r
DELTA=367 (111 added, 59 deleted, 197 changed)
OCL=23957
CL=23960
Diffstat (limited to 'src/lib/once.go')
-rw-r--r-- | src/lib/once.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/once.go b/src/lib/once.go index 6019df515..e1466ab8e 100644 --- a/src/lib/once.go +++ b/src/lib/once.go @@ -17,12 +17,12 @@ type _Job struct { } type _Request struct { - f *(); + f func(); reply chan *_Job } var service = make(chan _Request) -var jobmap = make(map[*()]*_Job) +var jobmap = make(map[func()]*_Job) // Moderate access to the jobmap. // Even if accesses were thread-safe (they should be but are not) @@ -42,7 +42,7 @@ func server() { } } -func Do(f *()) { +func Do(f func()) { // Look for job in map (avoids channel communication). // If not there, ask map server to make one. // TODO: Uncomment use of jobmap[f] once |