summaryrefslogtreecommitdiff
path: root/libgo/runtime/sema.goc
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/runtime/sema.goc')
-rw-r--r--libgo/runtime/sema.goc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/runtime/sema.goc b/libgo/runtime/sema.goc
index f5d5bc89e3..50f0e973d7 100644
--- a/libgo/runtime/sema.goc
+++ b/libgo/runtime/sema.goc
@@ -136,7 +136,7 @@ runtime_semacquire(uint32 volatile *addr, bool profile)
// Any semrelease after the cansemacquire knows we're waiting
// (we set nwait above), so go to sleep.
semqueue(root, addr, &s);
- runtime_park(runtime_unlock, root, "semacquire");
+ runtime_parkunlock(root, "semacquire");
if(cansemacquire(addr)) {
if(t0)
runtime_blockevent(s.releasetime - t0, 3);
@@ -259,7 +259,7 @@ func runtime_Syncsemacquire(s *SyncSema) {
else
s->tail->next = &w;
s->tail = &w;
- runtime_park(runtime_unlock, s, "semacquire");
+ runtime_parkunlock(s, "semacquire");
if(t0)
runtime_blockevent(w.releasetime - t0, 2);
}
@@ -293,7 +293,7 @@ func runtime_Syncsemrelease(s *SyncSema, n uint32) {
else
s->tail->next = &w;
s->tail = &w;
- runtime_park(runtime_unlock, s, "semarelease");
+ runtime_parkunlock(s, "semarelease");
} else
runtime_unlock(s);
}