MCPcopy Create free account
hub / github.com/LyricTian/queue / ListQueue

Struct ListQueue

list_queue.go:31–40  ·  view source on GitHub ↗

ListQueue a list task queue for mitigating server pressure in high concurrency situations and improving task processing

Source from the content-addressed store, hash-verified

29// ListQueue a list task queue for mitigating server pressure in high concurrency situations
30// and improving task processing
31type ListQueue struct {
32 maxLen int
33 maxWorker int
34 workers []*worker
35 workerPool chan chan Jober
36 list *list.List
37 lock *sync.RWMutex
38 wg *sync.WaitGroup
39 running uint32
40}
41
42// Run start running queues
43func (q *ListQueue) Run() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected