Panda3D
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
Public Member Functions | List of all members
LockType Class Reference

Public Member Functions

def __init__
 
def __exit__
 
def acquire
 
def locked
 
def release
 

Detailed Description

Implements a mutex lock.  Instead of directly subclassing
PandaModules.Mutex, we reimplement the lock here, to allow us to
provide the described Python lock semantics.  In particular, this
allows a different thread to release the lock than the one that
acquired it. 

Constructor & Destructor Documentation

def __init__ (   self)

Member Function Documentation

def __exit__ (   self,
  t,
  v,
  tb 
)
def acquire (   self,
  waitflag = 1 
)
def locked (   self)
def release (   self)