gh-109649: Add os.process_cpu_count() function (#109907)
* Refactor os_sched_getaffinity_impl(): move variable definitions to their first assignment. * Fix test_posix.test_sched_getaffinity(): restore the old CPU mask when the test completes! * Doc: Specify that os.cpu_count() counts *logicial* CPUs. * Doc: Specify that os.sched_getaffinity(0) is related to the calling thread.
V
Victor Stinner committed
c81521020d643b4a5183098470ef7e6470facefb
Parent: 2c23419
Committed by GitHub <[email protected]>
on 9/30/2023, 10:12:51 PM