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:
|
value = self._semlock._get_value() |
|
value = self._semlock._get_value() |
|
num_waiters = (self._sleeping_count._semlock._get_value() - |
|
self._woken_count._semlock._get_value()) |
|
return self._maxsize - self._sem._semlock._get_value() |
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
Linked PRs
Feature or enhancement
Proposal:
This improvement is based on @ronaldoussoren's comment at #125829 (comment)
multiprocessingmodule.semaphore._semlock._get_valuein 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
Linked PRs
get_valuemethod to documentation and refactor code. #133301get_valuemethod to documentation and refactor code. (GH-133301) #142110