mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-12 05:20:26 +00:00
Fix hyphae count corruption on reindexation
This commit is contained in:
parent
100f5ada92
commit
455a3e0f79
@ -10,6 +10,13 @@ var count = struct {
|
||||
sync.Mutex
|
||||
}{}
|
||||
|
||||
// Set the value of hyphae count to zero.
|
||||
func ResetCount() {
|
||||
count.Lock()
|
||||
count.value = 0
|
||||
count.Unlock()
|
||||
}
|
||||
|
||||
// Increment the value of hyphae count.
|
||||
func IncrementCount() {
|
||||
count.Lock()
|
||||
|
Loading…
Reference in New Issue
Block a user