summaryrefslogtreecommitdiff
path: root/src/pkg/sync/cond.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/sync/cond.go')
-rw-r--r--src/pkg/sync/cond.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkg/sync/cond.go b/src/pkg/sync/cond.go
index 491b98569..13547a8a1 100644
--- a/src/pkg/sync/cond.go
+++ b/src/pkg/sync/cond.go
@@ -57,6 +57,7 @@ func NewCond(l Locker) *Cond {
//
func (c *Cond) Wait() {
if raceenabled {
+ _ = c.m.state
raceDisable()
}
c.m.Lock()
@@ -80,6 +81,7 @@ func (c *Cond) Wait() {
// during the call.
func (c *Cond) Signal() {
if raceenabled {
+ _ = c.m.state
raceDisable()
}
c.m.Lock()
@@ -106,6 +108,7 @@ func (c *Cond) Signal() {
// during the call.
func (c *Cond) Broadcast() {
if raceenabled {
+ _ = c.m.state
raceDisable()
}
c.m.Lock()