add comments for waiting to get a idle worker

This commit is contained in:
AndyPan 2018-09-30 09:46:56 +08:00
parent e538683d3f
commit 1b62696050
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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.