[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2019-08-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 35f6301d68bdb0517be284421782d64407dfe72c by Raymond Hettinger in branch 'master': bpo-10978: Semaphores can release multiple threads at a time (GH-15588) https://github.com/python/cpython/commit/35f6301d68bdb0517be284421782d64407dfe72c

[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2019-08-29 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2019-08-29 Thread Raymond Hettinger
Change by Raymond Hettinger : -- versions: +Python 3.9 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2019-08-29 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +15264 pull_request: https://github.com/python/cpython/pull/15588 ___ Python tracker ___ ___

[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2019-03-15 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2014-06-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: Never know whether to comment on issue itself, but just in case: There are issues with the patch when n < 0 is passed, as n is not sanity checked, which would break the Semaphore invariant (value must be >= 0). n == 0 is also a weird value, but harmless if pas

[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2014-06-24 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.rosenberg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2014-06-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2014-06-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Updated patch (with tests and docs). -- nosy: +tim.peters versions: +Python 3.5 -Python 3.3 Added file: http://bugs.python.org/file35718/multirelease.diff ___ Python tracker ___

[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2014-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: Seems good to proceed as there are no dissenters. -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Py

[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2011-05-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your patch uses tabs for indentation. Otherwise, looks good on the principle. -- nosy: +pitrou stage: -> patch review type: behavior -> feature request ___ Python tracker ___

[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2011-03-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue10978] Add optional argument to Semaphore.release for releasing multiple threads

2011-01-21 Thread Raymond Hettinger
New submission from Raymond Hettinger : Call sem.release(5) would have the same effect as: with lock: for i in range(5): sem.release() The use case is when a single semaphore is holding up multiple threads and needs to release them all. According to "The Little Book of Semaphores