• Austin Clements's avatar
    runtime: make (Un)LockOSThread doc more prescriptive · 0aef82aa
    Austin Clements authored
    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: default avatarKeith Randall <khr@golang.org>
    0aef82aa
proc.go 137 KB