MCPcopy Create free account
hub / github.com/changkun/pkg / Dequeue

Method Dequeue

lockfree/queue.go:52–73  ·  view source on GitHub ↗

Dequeue removes and returns the value at the head of the queue. It returns nil if the queue is empty.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

TestQueueDequeueEmptyFunction · 0.95
TestQueue_LengthFunction · 0.95
ExampleQueueFunction · 0.95
BenchmarkQueueFunction · 0.95

Calls 2

loaditemFunction · 0.85
casitemFunction · 0.85

Tested by 4

TestQueueDequeueEmptyFunction · 0.76
TestQueue_LengthFunction · 0.76
ExampleQueueFunction · 0.76
BenchmarkQueueFunction · 0.76