MCPcopy Create free account
hub / github.com/dustinxie/lockfree / Queue

Interface Queue

queue.go:23–32  ·  view source on GitHub ↗

Queue is a FIFO list

Source from the content-addressed store, hash-verified

21type (
22 // Queue is a FIFO list
23 Queue interface {
24 // length of queue
25 Len() int
26
27 // add an item to the queue
28 Enque(interface{})
29
30 // remove an item from the queue
31 Deque() interface{}
32 }
33)
34
35// NewQueue creates a new queue

Callers 8

TestNewQueueFunction · 0.95
TestQueueFunction · 0.95
TestNewQueueFunction · 0.95
BenchmarkLockfreeQueueFunction · 0.95
TestQueueFunction · 0.95
TestNewQueueFunction · 0.95
BenchmarkLockfreeQueueFunction · 0.95
TestQueueFunction · 0.95

Implementers 1

queuelist/queue.go

Calls

no outgoing calls

Tested by

no test coverage detected