Panda3D
Classes | Functions | Variables
direct.stdpy.threading2 Namespace Reference

Classes

class  _BoundedSemaphore
 
class  _Condition
 
class  _DummyThread
 
class  _Event
 
class  _MainThread
 
class  _RLock
 
class  _Semaphore
 
class  _Timer
 
class  _Verbose
 
class  Thread
 

Functions

def active_count ()
 
def BoundedSemaphore (*args, **kwargs)
 
def Condition (*args, **kwargs)
 
def current_thread ()
 
def enumerate ()
 
def Event (*args, **kwargs)
 
def main_thread ()
 
def RLock (*args, **kwargs)
 
def Semaphore (*args, **kwargs)
 
def setprofile (func)
 
def settrace (func)
 
def Timer (*args, **kwargs)
 

Variables

def activeCount = active_count
 
 count
 
def currentThread = current_thread
 
 get_ident = _thread.get_ident
 
 limit
 
 Lock = _allocate_lock
 
 mon
 
 queue
 
 quota
 
 rc
 
 ThreadError = _thread.error
 
 TIMEOUT_MAX = _thread.TIMEOUT_MAX
 
 wc
 

Detailed Description

This module reimplements Python's native threading module using Panda
threading constructs.  It's designed as a drop-in replacement for the
threading module for code that works with Panda; it is necessary because
in some compilation models, Panda's threading constructs are
incompatible with the OS-provided threads used by Python's thread
module.

Unlike threading.py, this module is a more explicit implementation of
Python's threading model, designed to more precisely emulate Python's
standard threading semantics.  In fact, this is a bald-face copy of
Python's threading module from Python 2.5, with a few lines at the top
to import Panda's thread reimplementation instead of the system thread
module, and so it is therefore layered on top of Panda's thread
implementation. 

Function Documentation

◆ active_count()

def direct.stdpy.threading2.active_count ( )

◆ BoundedSemaphore()

def direct.stdpy.threading2.BoundedSemaphore ( args,
**  kwargs 
)

◆ Condition()

def direct.stdpy.threading2.Condition ( args,
**  kwargs 
)

◆ current_thread()

def direct.stdpy.threading2.current_thread ( )

◆ enumerate()

def direct.stdpy.threading2.enumerate ( )

◆ Event()

def direct.stdpy.threading2.Event ( args,
**  kwargs 
)

◆ main_thread()

def direct.stdpy.threading2.main_thread ( )
Return the main thread object.
In normal conditions, the main thread is the thread from which the
Python interpreter was started.

◆ RLock()

def direct.stdpy.threading2.RLock ( args,
**  kwargs 
)

◆ Semaphore()

def direct.stdpy.threading2.Semaphore ( args,
**  kwargs 
)

◆ setprofile()

def direct.stdpy.threading2.setprofile (   func)

◆ settrace()

def direct.stdpy.threading2.settrace (   func)

◆ Timer()

def direct.stdpy.threading2.Timer ( args,
**  kwargs 
)

Variable Documentation

◆ activeCount

def activeCount = active_count

◆ count

count

◆ currentThread

def currentThread = current_thread

◆ get_ident

get_ident = _thread.get_ident

◆ limit

limit

◆ Lock

Lock = _allocate_lock

◆ mon

mon

◆ queue

queue

◆ quota

quota

◆ rc

rc

◆ ThreadError

ThreadError = _thread.error

◆ TIMEOUT_MAX

TIMEOUT_MAX = _thread.TIMEOUT_MAX

◆ wc

wc