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

Classes

class  _local
 
class  error
 
class  LockType
 

Functions

def allocate_lock ()
 
def exit ()
 
def get_ident ()
 
def interrupt_main ()
 
def stack_size (size=0)
 
def start_new_thread (function, args, kwargs={}, name=None)
 

Variables

 consider_yield = core.Thread.consider_yield
 
 considerYield = consider_yield
 
 error = RuntimeError
 
 force_yield = core.Thread.force_yield
 
 forceYield = force_yield
 
 TIMEOUT_MAX = float(0xffffffff // 1000)
 

Detailed Description

This module reimplements Python's native thread module using Panda
threading constructs.  It's designed as a drop-in replacement for the
thread 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. 

Function Documentation

◆ allocate_lock()

def direct.stdpy.thread.allocate_lock ( )

◆ exit()

def direct.stdpy.thread.exit ( )

◆ get_ident()

def direct.stdpy.thread.get_ident ( )

◆ interrupt_main()

def direct.stdpy.thread.interrupt_main ( )

◆ stack_size()

def direct.stdpy.thread.stack_size (   size = 0)

◆ start_new_thread()

def direct.stdpy.thread.start_new_thread (   function,
  args,
  kwargs = {},
  name = None 
)

Variable Documentation

◆ consider_yield

consider_yield = core.Thread.consider_yield

◆ considerYield

considerYield = consider_yield

◆ error

error = RuntimeError

◆ force_yield

force_yield = core.Thread.force_yield

◆ forceYield

forceYield = force_yield

◆ TIMEOUT_MAX

TIMEOUT_MAX = float(0xffffffff // 1000)