Message199180
The implementation is a bit weird. Why take the lock a second time instead of simply reimplementing the release() method?
(it's a 5-liner)
By the way, Semaphore.acquire could probably use Condition.wait_for. |
|
Date |
User |
Action |
Args |
2013-10-08 08:50:44 | pitrou | set | recipients:
+ pitrou, tim.peters, vstinner, sbt |
2013-10-08 08:50:44 | pitrou | set | messageid: <1381222244.52.0.170517618703.issue19158@psf.upfronthosting.co.za> |
2013-10-08 08:50:44 | pitrou | link | issue19158 messages |
2013-10-08 08:50:44 | pitrou | create | |
|