Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ThreadPool ¶
type ThreadPool struct {
// contains filtered or unexported fields
}
func NewThreadPool ¶
func NewThreadPool(max int, buffer int, exef func(interface{})) *ThreadPool
func (*ThreadPool) AddJob ¶
func (tp *ThreadPool) AddJob(hash int, v interface{})
func (*ThreadPool) AddJobTimeout ¶
func (tp *ThreadPool) AddJobTimeout(hash int, v interface{}, timeoutms int) bool
func (*ThreadPool) GetStat ¶
func (tp *ThreadPool) GetStat() ThreadPoolStat
func (*ThreadPool) ResetStat ¶
func (tp *ThreadPool) ResetStat()
func (*ThreadPool) Stop ¶
func (tp *ThreadPool) Stop()
type ThreadPoolStat ¶
Click to show internal directories.
Click to hide internal directories.