()
| 695 | } |
| 696 | |
| 697 | func (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 | |
| 707 | func (this *BlockSyncMgr) releaseSaveBlockLock() { |
| 708 | this.lock.Lock() |