It’s not good and the root cause is Percentage method passes lock by value so engine.Summaries is actually called on a copy of the lock. It’s very easy to overlook, especially in bigger programs. It isn’t detected by the compiler since this might be an intention of the programmer. This is where vet steps in…
@wgliang
So I will pull request if you concur to fix this problem.
It’s not good and the root cause is Percentage method passes lock by value so engine.Summaries is actually called on a copy of the lock. It’s very easy to overlook, especially in bigger programs. It isn’t detected by the compiler since this might be an intention of the programmer. This is where vet steps in… @wgliang So I will pull request if you concur to fix this problem.