()
| 659 | } |
| 660 | |
| 661 | func (this *BlockSyncMgr) tryGetSyncBlockLock() bool { |
| 662 | this.lock.Lock() |
| 663 | defer this.lock.Unlock() |
| 664 | if this.syncBlockLock { |
| 665 | return true |
| 666 | } |
| 667 | this.syncBlockLock = true |
| 668 | return false |
| 669 | } |
| 670 | |
| 671 | func (this *BlockSyncMgr) releaseSyncBlockLock() { |
| 672 | this.lock.Lock() |