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

Method PushWithoutLock

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

PushWithoutLock is no lock mode of Push

(node QueueNode)

Source from the content-addressed store, hash-verified

91
92// PushWithoutLock is no lock mode of Push
93func (q *Queue) PushWithoutLock(node QueueNode) {
94 if q.tail == nil {
95 q.head = node
96 q.tail = node
97 q.count = 1
98 } else {
99 q.tail.SetNext(node)
100 q.tail = node
101 q.count++
102 }
103}
104
105// PullWithOutLock is no lock mode of Pull
106func (q *Queue) PullWithOutLock() QueueNode {

Callers 1

PushMethod · 0.95

Calls 1

SetNextMethod · 0.65

Tested by

no test coverage detected