mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-16 18:11:03 +00:00
update
This commit is contained in:
parent
92bcb74066
commit
c5e17c566b
3
pool.go
3
pool.go
@ -18,7 +18,7 @@ type Pool struct {
|
||||
workerPool sync.Pool
|
||||
destroy chan sig
|
||||
m sync.Mutex
|
||||
wg *sync.WaitGroup
|
||||
wg sync.WaitGroup
|
||||
}
|
||||
|
||||
func NewPool(size int) *Pool {
|
||||
@ -26,7 +26,6 @@ func NewPool(size int) *Pool {
|
||||
capacity: int32(size),
|
||||
freeSignal: make(chan sig, size),
|
||||
destroy: make(chan sig, runtime.GOMAXPROCS(-1)),
|
||||
wg: &sync.WaitGroup{},
|
||||
}
|
||||
return p
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user