sandia-minimega / minimega

minimega
GNU General Public License v3.0
148 stars 66 forks source link

minimega: fix parallel flush #1353

Closed djfritz closed 5 years ago

djfritz commented 5 years ago

Perhaps a better solution to the slow container Flush() than #1350

@jcrussell this is only tested against 10 containers - can we subject this to the minitest suite before merging?

jcrussell commented 5 years ago

wg.Add(1) should be outside the go func to avoid race. See WaitGroup example.

djfritz commented 5 years ago

@jcrussell PTAL