示例#1
0
func (ms *memoryRootTracker) UpdateRoot(current, last ref.Ref) bool {
	if last != ref.Ref(*ms) {
		return false
	}

	*ms = memoryRootTracker(current)
	return true
}
示例#2
0
func (ms *memoryRootTracker) Root() ref.Ref {
	return ref.Ref(*ms)
}