Documentation
¶
Overview ¶
Package mp
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyedMutex ¶
type KeyedMutex struct {
// contains filtered or unexported fields
}
func (*KeyedMutex) Lock ¶
func (k *KeyedMutex) Lock(key string) func()
type WorkerPool ¶
type WorkerPool struct {
// contains filtered or unexported fields
}
func NewWorkerPool ¶
func NewWorkerPool(workerNum int, queueSize int) *WorkerPool
func (*WorkerPool) Start ¶
func (p *WorkerPool) Start()
func (*WorkerPool) Stop ¶
func (p *WorkerPool) Stop()
func (*WorkerPool) Submit ¶
func (p *WorkerPool) Submit(task func())
func (*WorkerPool) Wait ¶
func (p *WorkerPool) Wait()
Click to show internal directories.
Click to hide internal directories.