]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.16: mention syscall.AllThreadsSyscall
authorIan Lance Taylor <iant@golang.org>
Fri, 22 Jan 2021 02:29:13 +0000 (18:29 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 22 Jan 2021 06:33:04 +0000 (06:33 +0000)
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>
doc/go1.16.html

index c76161432e096a51a5589432782810000ca58204..aa70ec8c823d443a962312ba909a7df33cd51467 100644 (file)
@@ -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 -->