MCPcopy Index your code
hub / github.com/panjf2000/ants / newWorkerLoopQueue

Function newWorkerLoopQueue

worker_loop_queue.go:36–44  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

34}
35
36func newWorkerLoopQueue(size int) *loopQueue {
37 if size <= 0 {
38 return nil
39 }
40 return &loopQueue{
41 items: make([]worker, size),
42 size: size,
43 }
44}
45
46func (wq *loopQueue) len() int {
47 if wq.size == 0 || wq.isEmpty() {

Callers 5

newWorkerQueueFunction · 0.85
TestNewLoopQueueFunction · 0.85
TestLoopQueueFunction · 0.85
TestRotatedQueueSearchFunction · 0.85
TestRetrieveExpiryFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestNewLoopQueueFunction · 0.68
TestLoopQueueFunction · 0.68
TestRotatedQueueSearchFunction · 0.68
TestRetrieveExpiryFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…