Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
_BoundedSemaphore Class Reference
Inheritance diagram for _BoundedSemaphore:
_Semaphore _Verbose

Public Member Functions

def __init__
 
def release
 
- Public Member Functions inherited from _Semaphore
def __init__
 
def acquire
 
def release
 
- Public Member Functions inherited from _Verbose
def __init__
 
def __init__
 

Detailed Description

Semaphore that checks that # releases is <= # acquires

Definition at line 290 of file threading.py.

Constructor & Destructor Documentation

def __init__ (   self,
  value = 1,
  verbose = None 
)

Definition at line 292 of file threading.py.

References _BoundedSemaphore._initial_value.

293  def __init__(self, value=1, verbose=None):
294  _Semaphore.__init__(self, value, verbose)
295  self._initial_value = value

Member Function Documentation

def release (   self)

Definition at line 296 of file threading.py.

References _BoundedSemaphore._initial_value.

297  def release(self):
298  if self._Semaphore__value >= self._initial_value:
299  raise ValueError, "Semaphore released too many times"
300  return _Semaphore.release(self)
301 

The documentation for this class was generated from the following file: