Пример #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)
}