Skip to content

Commit 58a4d88

Browse files
committed
Update
1 parent cc5e1ed commit 58a4d88

File tree

10 files changed

+0
-15
lines changed

10 files changed

+0
-15
lines changed

examples/singleapp/gate/countdownlatch.go renamed to examples/async/gate/countdownlatch.go

-15
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,3 @@ func (me *CountdownLatch) CurrentCount() int {
6969

7070
return int(me.count.Load())
7171
}
72-
73-
// Reset は、カウントを指定された値にリセットします.
74-
// リセットすることになるため、強制的にカウント満了したことになり、待機している非同期処理が存在する場合は解除されます.
75-
func (me *CountdownLatch) Reset(count int) {
76-
if count < 0 {
77-
panic("リセットカウントは0以上である必要があります")
78-
}
79-
80-
me.mutex.Lock()
81-
defer me.mutex.Unlock()
82-
83-
me.cond.Broadcast()
84-
85-
me.count.Store(int32(count))
86-
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)