// IsClosed return this pool is closed
IsClosed return this pool is closed
// IsClosed return this pool is closed
func (pool *ObjectPool) IsClosed() bool {
	pool.closeLock.Lock()
	defer pool.closeLock.Unlock()
	return pool.closed
}
func ( pool * ObjectPool ) IsClosed ( ) bool { pool . closeLock . Lock ( ) defer pool . closeLock . Unlock ( ) return pool . closed }
IsClosed return this pool is closed
IsClosed return this pool is closed
// in java commons pool, closed is volatile, golang has not volatile, so use mutex to avoid data race