mirror of https://github.com/panjf2000/ants.git
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…
Reference in New Issue