package
1.3.48
Repository: https://github.com/sandwich-go/boost.git
Documentation: pkg.go.dev

# 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.

# Interfaces

BytesPool bytes pool.
Reference 引用.
ReferencePool 引用池.

# Type aliases

Job 被 worker 竞争的工作.