mirror of https://github.com/panjf2000/ants.git
add comments for waiting to get a idle worker
This commit is contained in:
parent
e538683d3f
commit
1b62696050
2
pool.go
2
pool.go
|
@ -53,7 +53,7 @@ type Pool struct {
|
|||
// lock for synchronous operation.
|
||||
lock sync.Mutex
|
||||
|
||||
// cond for waiting idle worker
|
||||
// cond for waiting to get a idle worker
|
||||
cond *sync.Cond
|
||||
|
||||
once sync.Once
|
||||
|
|
|
@ -51,7 +51,7 @@ type PoolWithFunc struct {
|
|||
// lock for synchronous operation.
|
||||
lock sync.Mutex
|
||||
|
||||
// cond for waiting idle worker
|
||||
// cond for waiting to get a idle worker
|
||||
cond *sync.Cond
|
||||
|
||||
// pf is the function for processing tasks.
|
||||
|
|
Loading…
Reference in New Issue