Skip to content

Commit 11def3d

Browse files
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>
1 parent 07b0235 commit 11def3d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/go1.16.html

+10
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,16 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
934934
and related calls are now implemented.
935935
Previously, they returned an <code>syscall.EOPNOTSUPP</code> error.
936936
</p>
937+
938+
<p><!-- CL 210639 -->
939+
On Linux, the new functions
940+
<a href="/pkg/syscall/#AllThreadsSyscall"><code>AllThreadsSyscall</code></a>
941+
and <a href="/pkg/syscall/#AllThreadsSyscall6"><code>AllThreadsSyscall6</code></a>
942+
may be used to make a system call on all Go threads in the process.
943+
These functions may only be used by programs that do not use cgo;
944+
if a program uses cgo, they will always return
945+
<a href="/pkg/syscall/#ENOTSUP"><code>syscall.ENOTSUP</code></a>.
946+
</p>
937947
</dd>
938948
</dl><!-- syscall -->
939949

0 commit comments

Comments
 (0)