From 1b62696050b7030106291980d5220f886b017eff Mon Sep 17 00:00:00 2001 From: AndyPan Date: Sun, 30 Sep 2018 09:46:56 +0800 Subject: [PATCH] add comments for waiting to get a idle worker --- pool.go | 2 +- pool_func.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pool.go b/pool.go index 77ec952..04730de 100644 --- a/pool.go +++ b/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 diff --git a/pool_func.go b/pool_func.go index fc3c73f..3423ab7 100644 --- a/pool_func.go +++ b/pool_func.go @@ -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.