Cap returns the capacity of this pool.
()
| 356 | |
| 357 | // Cap returns the capacity of this pool. |
| 358 | func (p *poolCommon) Cap() int { |
| 359 | return int(atomic.LoadInt32(&p.capacity)) |
| 360 | } |
| 361 | |
| 362 | // Tune changes the capacity of this pool, note that it is noneffective to the infinite or pre-allocation pool. |
| 363 | func (p *poolCommon) Tune(size int) { |
no outgoing calls