Commit bf6843e
[3.12] gh-109649: Enhance os.cpu_count() documentation (GH-110169)
* gh-109649: Enhance os.cpu_count() documentation
* Doc: Specify that os.cpu_count() counts *logicial* CPUs.
* Doc: Specify that os.sched_getaffinity(0) is related to the calling
thread.
* Fix test_posix.test_sched_getaffinity(): restore the old CPU mask
when the test completes!
* Restore removed text
(cherry picked from commit 5245b97)
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 981696e commit bf6843e
2 files changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4872 | 4872 | | |
4873 | 4873 | | |
4874 | 4874 | | |
4875 | | - | |
4876 | | - | |
| 4875 | + | |
| 4876 | + | |
| 4877 | + | |
| 4878 | + | |
4877 | 4879 | | |
4878 | 4880 | | |
4879 | 4881 | | |
| |||
4914 | 4916 | | |
4915 | 4917 | | |
4916 | 4918 | | |
4917 | | - | |
4918 | | - | |
4919 | | - | |
4920 | | - | |
4921 | | - | |
| 4919 | + | |
| 4920 | + | |
4922 | 4921 | | |
| 4922 | + | |
| 4923 | + | |
| 4924 | + | |
4923 | 4925 | | |
4924 | 4926 | | |
4925 | 4927 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1205 | 1205 | | |
1206 | 1206 | | |
1207 | 1207 | | |
| 1208 | + | |
1208 | 1209 | | |
1209 | 1210 | | |
1210 | 1211 | | |
| |||
0 commit comments