aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/runtime/cond.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/cond.go')
-rw-r--r--src/runtime/cond.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/cond.go b/src/runtime/cond.go
index 00e89932a..b27ab08ab 100644
--- a/src/runtime/cond.go
+++ b/src/runtime/cond.go
@@ -34,7 +34,7 @@ func (c *Cond) Notify() bool {
default:
// Unblock the waiting task.
if atomic.CompareAndSwapPointer((*unsafe.Pointer)(unsafe.Pointer(&c.t)), unsafe.Pointer(t), nil) {
- runqueuePushBack(t)
+ scheduleTask(t)
return true
}
}