]> Cypherpunks repositories - gostls13.git/commit
runtime: expand gopark documentation
authorMichael Pratt <mpratt@google.com>
Fri, 18 Sep 2020 21:53:12 +0000 (17:53 -0400)
committerMichael Pratt <mpratt@google.com>
Mon, 21 Sep 2020 15:08:44 +0000 (15:08 +0000)
commit02ff8b8ce49c7c8f1180ee6e915b867368ad77d3
tree10c8f3782b10026a099fbf77049fef48cfc6ffb1
parenteb3c6a93c3236bbde5dee6cc5bd4ca9f8ab1647a
runtime: expand gopark documentation

unlockf is called after the G is put into _Gwaiting, meaning another G
may have readied this one before unlockf is called.

This is implied by the current doc, but add additional notes to call out
this behavior, as it can be quite surprising.

Updates #40641

Change-Id: I60b1ccc6a4dd9ced8ad2aa1f729cb2e973100b59
Reviewed-on: https://go-review.googlesource.com/c/go/+/256058
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/proc.go