aboutsummaryrefslogtreecommitdiff
path: root/src/lib/sync
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-01-20 14:40:40 -0800
committerRuss Cox <rsc@golang.org>2009-01-20 14:40:40 -0800
commit839a68469b6f8bf40620a7977041e089bbd0eba3 (patch)
treef8305b165ee5ff41e9ef2b0f76e26f7ab3ece269 /src/lib/sync
parent0183baaf449338f54727814d079c0254c18226f9 (diff)
downloadgo-839a68469b6f8bf40620a7977041e089bbd0eba3.tar.xz
delete export
TBR=r OCL=23121 CL=23127
Diffstat (limited to 'src/lib/sync')
-rw-r--r--src/lib/sync/mutex.go2
-rw-r--r--src/lib/sync/mutex_test.go8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/sync/mutex.go b/src/lib/sync/mutex.go
index 68db0b697a..1269027e11 100644
--- a/src/lib/sync/mutex.go
+++ b/src/lib/sync/mutex.go
@@ -8,7 +8,7 @@ func cas(val *int32, old, new int32) bool
func semacquire(*int32)
func semrelease(*int32)
-export type Mutex struct {
+type Mutex struct {
key int32;
sema int32;
}
diff --git a/src/lib/sync/mutex_test.go b/src/lib/sync/mutex_test.go
index b9c063dbc0..819dbb9de5 100644
--- a/src/lib/sync/mutex_test.go
+++ b/src/lib/sync/mutex_test.go
@@ -11,7 +11,7 @@ import (
"testing"
)
-export func HammerSemaphore(s *int32, cdone chan bool) {
+func HammerSemaphore(s *int32, cdone chan bool) {
for i := 0; i < 1000; i++ {
semacquire(s);
semrelease(s);
@@ -19,7 +19,7 @@ export func HammerSemaphore(s *int32, cdone chan bool) {
cdone <- true;
}
-export func TestSemaphore(t *testing.T) {
+func TestSemaphore(t *testing.T) {
s := new(int32);
*s = 1;
c := make(chan bool);
@@ -32,7 +32,7 @@ export func TestSemaphore(t *testing.T) {
}
-export func HammerMutex(m *Mutex, cdone chan bool) {
+func HammerMutex(m *Mutex, cdone chan bool) {
for i := 0; i < 1000; i++ {
m.Lock();
m.Unlock();
@@ -40,7 +40,7 @@ export func HammerMutex(m *Mutex, cdone chan bool) {
cdone <- true;
}
-export func TestMutex(t *testing.T) {
+func TestMutex(t *testing.T) {
m := new(Mutex);
c := make(chan bool);
for i := 0; i < 10; i++ {