aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-01-21 18:29:13 -0800
committerIan Lance Taylor <iant@golang.org>2021-01-22 06:33:04 +0000
commit11def3d40b12292a30b305226cd4910b6c5bc14b (patch)
tree7955f0d6eddd228959799a0602cceecdcb0eaa1c
parent07b023560983db0ea0d82265be68fe5f89d545fe (diff)
downloadgo-11def3d40b12292a30b305226cd4910b6c5bc14b.tar.gz
go-11def3d40b12292a30b305226cd4910b6c5bc14b.zip
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 <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r--doc/go1.16.html10
1 files changed, 10 insertions, 0 deletions
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 <code>syscall.EOPNOTSUPP</code> error.
</p>
+
+ <p><!-- CL 210639 -->
+ On Linux, the new functions
+ <a href="/pkg/syscall/#AllThreadsSyscall"><code>AllThreadsSyscall</code></a>
+ and <a href="/pkg/syscall/#AllThreadsSyscall6"><code>AllThreadsSyscall6</code></a>
+ 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
+ <a href="/pkg/syscall/#ENOTSUP"><code>syscall.ENOTSUP</code></a>.
+ </p>
</dd>
</dl><!-- syscall -->