Skip to content

Commit 803f717

Browse files
committed
Fix sched_getaffinity() doc: mention the calling thread
1 parent 10340e8 commit 803f717

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Doc/library/os.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5141,8 +5141,10 @@ operating system.
51415141

51425142
.. function:: sched_getaffinity(pid, /)
51435143

5144-
Return the set of CPUs the process with PID *pid* (or the current process
5145-
if zero) is restricted to.
5144+
Return the set of CPUs the process with PID *pid*.
5145+
5146+
If *pid* is zero, return the set of CPUs the calling thread of the current
5147+
process is restricted to.
51465148

51475149
See also the :func:`process_cpu_count` function.
51485150

0 commit comments

Comments
 (0)