summaryrefslogtreecommitdiffstats
path: root/Doc/library/resource.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-11-17 16:19:35 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-11-17 16:19:35 (GMT)
commitb6d4ee536174f2d467c195904c140025109242e7 (patch)
tree1d75538a1c10061fd61353e0da779e5573fc141e /Doc/library/resource.rst
parentdc817b229c972b2a881d08834a0612232dac7415 (diff)
downloadcpython-b6d4ee536174f2d467c195904c140025109242e7.zip
cpython-b6d4ee536174f2d467c195904c140025109242e7.tar.gz
cpython-b6d4ee536174f2d467c195904c140025109242e7.tar.bz2
Issue #10440: Support RUSAGE_THREAD as a constant in the resource module.
Patch by Robert Collins.
Diffstat (limited to 'Doc/library/resource.rst')
-rw-r--r--Doc/library/resource.rst15
1 files changed, 11 insertions, 4 deletions
diff --git a/Doc/library/resource.rst b/Doc/library/resource.rst
index 602bd44..c16b013 100644
--- a/Doc/library/resource.rst
+++ b/Doc/library/resource.rst
@@ -217,14 +217,14 @@ function to specify which processes information should be provided for.
.. data:: RUSAGE_SELF
- :const:`RUSAGE_SELF` should be used to request information pertaining only to
- the process itself.
+ Pass to :func:`getrusage` to request resources consumed by the calling
+ process, which is the sum of resources used by all threads in the process.
.. data:: RUSAGE_CHILDREN
- Pass to :func:`getrusage` to request resource information for child processes of
- the calling process.
+ Pass to :func:`getrusage` to request resources consumed by child processes
+ of the calling process which have been terminated and waited for.
.. data:: RUSAGE_BOTH
@@ -232,3 +232,10 @@ function to specify which processes information should be provided for.
Pass to :func:`getrusage` to request resources consumed by both the current
process and child processes. May not be available on all systems.
+
+.. data:: RUSAGE_THREAD
+
+ Pass to :func:`getrusage` to request resources consumed by the current
+ thread. May not be available on all systems.
+
+ .. versionadded:: 3.2