Merge branch 'master' into develop

This commit is contained in:
AndyPan 2018-09-30 09:49:39 +08:00
commit 90d04008dd
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.