[issue17374] Remove restriction against Semaphore having a negative value
Raymond Hettinger
report at bugs.python.org
Thu Mar 7 10:08:14 CET 2013
Raymond Hettinger added the comment:
For reference, here is the Java API for a Semaphore ( http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/Semaphore.html ):
Semaphore
---------
public Semaphore(int permits)
Creates a Semaphore with the given number of permits and nonfair fairness setting.
Parameters:
permits - the initial number of permits available. This value may be negative, in which case releases must occur before any acquires will be granted.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17374>
_______________________________________
More information about the Python-bugs-list
mailing list