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

Classes

class  BoundedSemaphore
 
class  Condition
 
class  Event
 
class  ExternalThread
 
class  Lock
 
class  MainThread
 
class  RLock
 
class  Semaphore
 
class  Thread
 
class  ThreadBase
 
class  Timer
 

Functions

def active_count ()
 
def current_thread ()
 
def enumerate ()
 
def main_thread ()
 
def setprofile (func)
 
def settrace (func)
 
def stack_size (size=None)
 

Variables

def activeCount = active_count
 
 count
 
def currentThread = current_thread
 
 limit
 
 local = _thread._local
 
 mon
 
 queue
 
 quota
 
 rc
 
 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.

This module implements the threading module with a thin layer over
Panda's threading constructs.  As such, the semantics are close to,
but not precisely, the semantics documented for Python's standard
threading module.  If you really do require strict adherence to
Python's semantics, see the threading2 module instead.

However, if you don't need such strict adherence to Python's original
semantics, this module is probably a better choice.  It is likely to
be slighly faster than the threading2 module (and even slightly faster
than Python's own threading module).  It is also better integrated
with Panda's threads, so that Panda's thread debug mechanisms will be
easier to use and understand.

It is permissible to mix-and-match both threading and threading2
within the same application. 

Function Documentation

◆ active_count()

def direct.stdpy.threading.active_count ( )

◆ current_thread()

def direct.stdpy.threading.current_thread ( )

◆ enumerate()

def direct.stdpy.threading.enumerate ( )

◆ main_thread()

def direct.stdpy.threading.main_thread ( )

◆ setprofile()

def direct.stdpy.threading.setprofile (   func)

◆ settrace()

def direct.stdpy.threading.settrace (   func)

◆ stack_size()

def direct.stdpy.threading.stack_size (   size = None)

Variable Documentation

◆ activeCount

def activeCount = active_count

◆ count

count

◆ currentThread

def currentThread = current_thread

◆ limit

limit

◆ local

local = _thread._local

◆ mon

mon

◆ queue

queue

◆ quota

quota

◆ rc

rc

◆ TIMEOUT_MAX

TIMEOUT_MAX = _thread.TIMEOUT_MAX

◆ wc

wc