MCPcopy Create free account
hub / github.com/CPChain/chain / empty

Method empty

protocols/cpc/syncer/queue.go:59–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59func (q *queue) empty() bool {
60 return atomic.LoadInt32(&q.size) == 0
61}
62
63func (q *queue) clear() {
64 for !q.empty() {

Callers 4

clearMethod · 0.95
TestQueuePutAndGetFunction · 0.45
TestClearQueueFunction · 0.45
blocksHandlerMethod · 0.45

Calls

no outgoing calls

Tested by 2

TestQueuePutAndGetFunction · 0.36
TestClearQueueFunction · 0.36