commit f8d847dcc22c0b66eb3a1fde5b0412aca4d6e123
parent 2ca8e2e54008e9abc1d4698902016884016d981b
Author: dwrz <dwrz@dwrz.net>
Date: Fri, 5 Jun 2020 16:12:54 +0000
Document concurrency mutex example
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/concurrency/cmd/mutex/main.go b/concurrency/cmd/mutex/main.go
@@ -27,6 +27,7 @@ func main() {
wg.Add(len(adjustments))
for _, adjustment := range adjustments {
+ // go = placed onto thread, not the stack.
go func(adjustment int) {
defer wg.Done()