Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
59
func
(q *queue) empty() bool {
60
return
atomic.LoadInt32(&q.size) == 0
61
}
62
63
func
(q *queue) clear() {
64
for
!q.empty() {
Callers
4
clear
Method · 0.95
TestQueuePutAndGet
Function · 0.45
TestClearQueue
Function · 0.45
blocksHandler
Method · 0.45
Calls
no outgoing calls
Tested by
2
TestQueuePutAndGet
Function · 0.36
TestClearQueue
Function · 0.36