mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-11 22:53:43 +08:00
@@ -367,7 +367,7 @@ func (s semaphore) P(n int) {
|
||||
}
|
||||
}
|
||||
|
||||
// release n resouces
|
||||
// release n resources
|
||||
func (s semaphore) V(n int) {
|
||||
for i:= 0; i < n; i++{
|
||||
<- s
|
||||
|
Reference in New Issue
Block a user