From 0b8c9713e690fa68d640884c3b97128934fd4033 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 9 Jun 2019 10:37:35 +0800 Subject: [PATCH] improve grpool --- g/os/grpool/grpool.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/g/os/grpool/grpool.go b/g/os/grpool/grpool.go index 675e15193..9add6fe8b 100644 --- a/g/os/grpool/grpool.go +++ b/g/os/grpool/grpool.go @@ -14,11 +14,10 @@ import ( // Goroutine Pool type Pool struct { - limit int // Max goroutine count limit. - count *gtype.Int // Current running goroutine count. - list *glist.List // Job list for asynchronous job adding purpose. - closed *gtype.Bool // Is pool closed or not. - workers chan struct{} // Goroutine workers using channel to implements blocking feature. + limit int // Max goroutine count limit. + count *gtype.Int // Current running goroutine count. + list *glist.List // Job list for asynchronous job adding purpose. + closed *gtype.Bool // Is pool closed or not. } // Default goroutine pool.