Panda3D

Loading...
Searching...
No Matches
Public Member Functions | List of all members
LockType Class Reference

## Public Member Functions
| __init__ (self)
| __exit__ (self, t, v, tb)
| acquire (self, waitflag=1, timeout=-1)
| locked (self)
| release (self)

## 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

## ◆ __init__()

__init__ | ( |  | self | ) |

## Member Function Documentation

## ◆ __exit__()

__exit__ | ( |  | self,
|  |  | t,
|  |  | v,
|  |  | tb )

## ◆ acquire()

acquire | ( |  | self,
|  |  | waitflag = 1,
|  |  | timeout = -1 )

## ◆ locked()

locked | ( |  | self | ) |

## ◆ release()

release | ( |  | self | ) |