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