mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-18 11:21:02 +00:00
Merge branch 'master' into develop
This commit is contained in:
commit
90d04008dd
2
pool.go
2
pool.go
@ -53,7 +53,7 @@ type Pool struct {
|
|||||||
// lock for synchronous operation.
|
// lock for synchronous operation.
|
||||||
lock sync.Mutex
|
lock sync.Mutex
|
||||||
|
|
||||||
// cond for waiting idle worker
|
// cond for waiting to get a idle worker
|
||||||
cond *sync.Cond
|
cond *sync.Cond
|
||||||
|
|
||||||
once sync.Once
|
once sync.Once
|
||||||
|
|||||||
@ -51,7 +51,7 @@ type PoolWithFunc struct {
|
|||||||
// lock for synchronous operation.
|
// lock for synchronous operation.
|
||||||
lock sync.Mutex
|
lock sync.Mutex
|
||||||
|
|
||||||
// cond for waiting idle worker
|
// cond for waiting to get a idle worker
|
||||||
cond *sync.Cond
|
cond *sync.Cond
|
||||||
|
|
||||||
// pf is the function for processing tasks.
|
// pf is the function for processing tasks.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user