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

Public Member Functions

def __init__
 
def isSet
 
def set
 
def clear
 
def wait
 
- Public Member Functions inherited from _Verbose
def __init__
 
def __init__
 

Detailed Description

Definition at line 305 of file threading.py.

Constructor & Destructor Documentation

def __init__ (   self,
  verbose = None 
)

Definition at line 309 of file threading.py.

References _Semaphore.__cond, _Event.__cond, _Event.__flag, threading.Condition(), and threading.Lock.

310  def __init__(self, verbose=None):
311  _Verbose.__init__(self, verbose)
312  self.__cond = Condition(Lock())
313  self.__flag = 0

Member Function Documentation

def clear (   self)

Definition at line 323 of file threading.py.

References _Event.__flag.

324  def clear(self):
325  self.__cond.acquire()
326  self.__flag = 0
327  self.__cond.release()
def isSet (   self)

Definition at line 314 of file threading.py.

References _Event.__flag.

315  def isSet(self):
316  return self.__flag
def set (   self)

Definition at line 317 of file threading.py.

References _Event.__flag.

318  def set(self):
319  self.__cond.acquire()
320  self.__flag = 1
321  self.__cond.notifyAll()
322  self.__cond.release()
def wait (   self,
  timeout = None 
)

Definition at line 328 of file threading.py.

References _Event.__flag.

329  def wait(self, timeout=None):
330  self.__cond.acquire()
331  if not self.__flag:
332  self.__cond.wait(timeout)
333  self.__cond.release()
334 
# Helper to generate new thread names

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