MCPcopy Create free account
hub / github.com/enriquebris/goconcurrentqueue / Lock

Method Lock

queue.go:24–24  ·  view source on GitHub ↗

Lock the queue. No enqueue/dequeue/remove/get operations will be allowed after this point.

()

Source from the content-addressed store, hash-verified

22
23 // Lock the queue. No enqueue/dequeue/remove/get operations will be allowed after this point.
24 Lock()
25 // Unlock the queue.
26 Unlock()
27 // Return true whether the queue is locked

Callers 15

TestGetLockSingleGRMethod · 0.65
TestLockSingleGRMethod · 0.65
TestUnlockSingleGRMethod · 0.65
TestIsLockedSingleGRMethod · 0.65
EnqueueMethod · 0.65
DequeueMethod · 0.65
RemoveMethod · 0.65

Implementers 2

FIFOfifo_queue.go
FixedFIFOfixed_fifo_queue.go

Calls

no outgoing calls