Trees | Indices | Help |
|
---|
|
object --+ | _Verbose --+ | _Semaphore --+ | _BoundedSemaphore
A bounded semaphore checks to make sure its current value doesn't exceed its initial value. If it does, ValueError is raised. In most situations semaphores are used to guard resources with limited capacity.
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Release a semaphore, incrementing the internal counter by one. When the counter is zero on entry and another thread is waiting for it to become larger than zero again, wake up that thread. If the number of releases exceeds the number of acquires, raise a ValueError.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Dec 5 06:16:28 2017 | http://epydoc.sourceforge.net |