Mercurial > gemma
changeset 5469:1a89084163d5
Fixed data race in diff calculation by adding two forgotten waitgroup waits.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 19 Jul 2021 17:58:02 +0200 |
parents | df1b2c5ae541 |
children | 5000f8e8a4f1 |
files | pkg/mesh/raster.go |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/mesh/raster.go Mon Jul 19 16:17:08 2021 +0200 +++ b/pkg/mesh/raster.go Mon Jul 19 17:58:02 2021 +0200 @@ -114,6 +114,7 @@ rows <- i } close(rows) + wg.Wait() } func (r *Raster) Diff(eval func(float64, float64) (float64, bool)) { @@ -177,6 +178,7 @@ rows <- i } close(rows) + wg.Wait() } func (r *Raster) ZExtent() (float64, float64, bool) {