From: Ian Lance Taylor Date: Fri, 22 Jan 2021 02:29:13 +0000 (-0800) Subject: doc/go1.16: mention syscall.AllThreadsSyscall X-Git-Tag: go1.16rc1~43 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=11def3d40b12292a30b305226cd4910b6c5bc14b;p=gostls13.git doc/go1.16: mention syscall.AllThreadsSyscall For #1435 For #40700 Change-Id: I01d277617ab511c90b9663fc89e418402e5ee2be Reviewed-on: https://go-review.googlesource.com/c/go/+/285597 Trust: Ian Lance Taylor Reviewed-by: Brad Fitzpatrick --- diff --git a/doc/go1.16.html b/doc/go1.16.html index c76161432e..aa70ec8c82 100644 --- a/doc/go1.16.html +++ b/doc/go1.16.html @@ -934,6 +934,16 @@ func TestFoo(t *testing.T) { and related calls are now implemented. Previously, they returned an syscall.EOPNOTSUPP error.

+ +

+ On Linux, the new functions + AllThreadsSyscall + and AllThreadsSyscall6 + may be used to make a system call on all Go threads in the process. + These functions may only be used by programs that do not use cgo; + if a program uses cgo, they will always return + syscall.ENOTSUP. +