MCPcopy Index your code
hub / github.com/apache/devlake / Push

Method Push

backend/helpers/pluginhelper/api/queue.go:50–55  ·  view source on GitHub ↗

Push add a node to queue

(node QueueNode)

Source from the content-addressed store, hash-verified

48
49// Push add a node to queue
50func (q *Queue) Push(node QueueNode) {
51 q.mux.Lock()
52 defer q.mux.Unlock()
53
54 q.PushWithoutLock(node)
55}
56
57// Pull get a node from queue
58// it will add the working count and blocked when there are no node on queue but working count not zero

Callers 1

TestQueueFunction · 0.95

Calls 1

PushWithoutLockMethod · 0.95

Tested by 1

TestQueueFunction · 0.76