# README
xpool
- 支持
bytes
池 - 支持工作协程池
例子
p := NewSyncBytesPool(1, 100, 2)
buff := p.Alloc(6)
defer func() {
p.Free(buff)
}
# Functions
NewGoroutinePool 创建新的协程竞争池 numWorkers 数量的 worker 竞争 Job jobQueueLen 设置 job 队列长度 timeout 若 job 队列满,Push job 的超时时间.
No description provided by the author
NewPool 创建池.
No description provided by the author
NewSyncBytesPool create a sync.Pool base slab allocation memory pool.
# Variables
No description provided by the author
# Structs
GoroutinePool 线程池,numWorkers 数量的 worker 竞争 Job.
No description provided by the author
No description provided by the author
ReferencePoolStats 引用池子状态.
SyncBytesPool is a sync.Pool base slab allocation memory pool.
# Type aliases
Job 被 worker 竞争的工作.