diff options
| author | Rob Pike <r@golang.org> | 2009-01-16 14:16:31 -0800 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2009-01-16 14:16:31 -0800 |
| commit | 969365a06e210a3a3c969a99585e868aecc6af8a (patch) | |
| tree | cd385f6db111dd90dcbaa1a2007e17ae50e043de /src/lib/sync/mutex_test.go | |
| parent | cea97fbfc985cf2cbd110c00d2e436b776b271f8 (diff) | |
| download | golang-969365a06e210a3a3c969a99585e868aecc6af8a.tar.gz | |
casify linux syscall dependents, plus a few stragglers
R=rsc
DELTA=97 (0 added, 0 deleted, 97 changed)
OCL=22971
CL=22973
Diffstat (limited to 'src/lib/sync/mutex_test.go')
| -rw-r--r-- | src/lib/sync/mutex_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/sync/mutex_test.go b/src/lib/sync/mutex_test.go index 876cb0f14..1c4e73056 100644 --- a/src/lib/sync/mutex_test.go +++ b/src/lib/sync/mutex_test.go @@ -11,7 +11,7 @@ import ( "testing" ) -func HammerSemaphore(s *int32, cdone chan bool) { +func hammerSemaphore(s *int32, cdone chan bool) { for i := 0; i < 1000; i++ { sys.semacquire(s); sys.semrelease(s); @@ -24,7 +24,7 @@ export func TestSemaphore(t *testing.T) { *s = 1; c := make(chan bool); for i := 0; i < 10; i++ { - go HammerSemaphore(s, c); + go hammerSemaphore(s, c); } for i := 0; i < 10; i++ { <-c; @@ -32,7 +32,7 @@ export func TestSemaphore(t *testing.T) { } -func HammerMutex(m *Mutex, cdone chan bool) { +func hammerMutex(m *Mutex, cdone chan bool) { for i := 0; i < 1000; i++ { m.Lock(); m.Unlock(); @@ -44,7 +44,7 @@ export func TestMutex(t *testing.T) { m := new(Mutex); c := make(chan bool); for i := 0; i < 10; i++ { - go HammerMutex(m, c); + go hammerMutex(m, c); } for i := 0; i < 10; i++ { <-c; |
