release() function for threading.Barrier
Open
Nobody has claimed this yet.
type-feature
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 35.9k
- PR merge metrics
- PR metrics pending
Description
Feature or enhancement
Proposal:
It would be nice if the Barrier object had a release() function that unconditionally unblocks all waiting threads, even if count hasn't reached the configured value. This is kind of like a reset()/abort() but without raising an exception or putting the Barrier in a broken state.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the threading.Barrier entry point and the existing reset() and abort() behavior. Done means an agreed release() API unblocks all waiting threads without raising an exception or leaving the Barrier broken, with tests covering that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100