]> Cypherpunks repositories - gostls13.git/commit
runtime: make (Un)LockOSThread doc more prescriptive
authorAustin Clements <austin@google.com>
Wed, 2 Aug 2017 19:54:05 +0000 (15:54 -0400)
committerAustin Clements <austin@google.com>
Wed, 11 Oct 2017 17:47:23 +0000 (17:47 +0000)
commit0aef82aa4a301a7914e6a38d6e3d4722a6e1c547
treedaae0d4765fb20afe0b1b0a174c4004a21162cd9
parent4f34a5291317fe959074fb40b85d9be242b8a2fc
runtime: make (Un)LockOSThread doc more prescriptive

Right now users have to infer why they would want LockOSThread and
when it may or may not be appropriate to call UnlockOSThread. This
requires some understanding of Go's internal thread pool
implementation, which is unfortunate.

Improve the situation by making the documentation on these functions
more prescriptive so users can figure out when to use them even if
they don't know about the scheduler.

Change-Id: Ide221791e37cb5106dd8a172f89fbc5b3b98fe32
Reviewed-on: https://go-review.googlesource.com/52871
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/proc.go