MCPcopy Create free account
hub / github.com/DNAProject/DNA / tryGetSaveBlockLock

Method tryGetSaveBlockLock

p2pserver/block_sync.go:697–705  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

695}
696
697func (this *BlockSyncMgr) tryGetSaveBlockLock() bool {
698 this.lock.Lock()
699 defer this.lock.Unlock()
700 if this.saveBlockLock {
701 return true
702 }
703 this.saveBlockLock = true
704 return false
705}
706
707func (this *BlockSyncMgr) releaseSaveBlockLock() {
708 this.lock.Lock()

Callers 1

saveBlockMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected