Skip to content

Commit 6930bf2

Browse files
committed
Update
1 parent 83cb015 commit 6930bf2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/singleapp/count_down_latch/countdownlatch.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ func NewCountdownLatch(initialCount int) *CountdownLatch {
1919
}
2020

2121
var (
22-
ce CountdownLatch
22+
latch CountdownLatch
2323
)
24-
ce.count.Store(int32(initialCount))
25-
ce.cond = sync.NewCond(&ce.mutex)
24+
latch.count.Store(int32(initialCount))
25+
latch.cond = sync.NewCond(&latch.mutex)
2626

27-
return &ce
27+
return &latch
2828
}
2929

3030
// Signal は、カウントを1減らします.

0 commit comments

Comments
 (0)