Open
Description
Feature or enhancement
Proposal:
This improvement is based on @ronaldoussoren's comment at #125829 (comment)
- This public method should be documented in the synchronization primitives of
multiprocessing
module. - I also suggest to refactor code with this public method, in replacement of calls to the private method
semaphore._semlock._get_value
in the following locations:
cpython/Lib/multiprocessing/synchronize.py
Line 142 in 0c26dbd
cpython/Lib/multiprocessing/synchronize.py
Line 158 in 0c26dbd
cpython/Lib/multiprocessing/synchronize.py
Lines 250 to 251 in 0c26dbd
cpython/Lib/multiprocessing/queues.py
Line 124 in 0c26dbd
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response