|
Public Member Functions inherited from Thread |
TypedReferenceCount | getCurrentTask () |
| Returns the task currently executing on this thread (via the AsyncTaskManager), if any, or NULL if the thread is not currently servicing a task. More...
|
|
int | getPipelineStage () |
| Returns the Pipeline stage number associated with this thread. More...
|
|
int | getPstatsIndex () |
| Returns the PStats index associated with this thread, or -1 if no index has yet been associated with this thread. More...
|
|
int | getPythonIndex () |
| Returns the Python index associated with this thread, or -1 if no index has yet been associated with this thread. More...
|
|
str | getSyncName () |
| Returns the sync name of the thread. More...
|
|
str | getUniqueId () |
| Returns a string that is guaranteed to be unique to this thread, across all processes on the machine, during at least the lifetime of this process. More...
|
|
bool | isJoinable () |
| Returns the value of joinable that was passed to the start() call. More...
|
|
bool | isStarted () |
| Returns true if the thread has been started, false if it has not, or if join() has already been called. More...
|
|
| join () |
| Blocks the calling process until the thread terminates. More...
|
|
| output (Ostream out) |
|
| outputBlocker (Ostream out) |
| Writes a description of the mutex or condition variable that this thread is blocked on. More...
|
|
| preempt () |
| Indicates that this thread should run as soon as possible, preemptying any other threads that may be scheduled to run. More...
|
|
| setMinPipelineStage (int min_pipeline_stage) |
| Sets this thread's pipeline stage number to at least the indicated value, unless it is already larger. More...
|
|
| setPipelineStage (int pipeline_stage) |
| Specifies the Pipeline stage number associated with this thread. More...
|
|
| setPythonIndex (int index) |
| Stores a Python index to be associated with this thread. More...
|
|
bool | start (ThreadPriority priority, bool joinable) |
| Starts the thread executing. More...
|
|
Public Member Functions inherited from TypedObject |
TypeHandle | getType () |
|
int | getTypeIndex () |
| Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More...
|
|
bool | isExactType (TypeHandle handle) |
| Returns true if the current object is the indicated type exactly. More...
|
|
bool | isOfType (TypeHandle handle) |
| Returns true if the current object is or derives from the indicated type. More...
|
|
Public Member Functions inherited from ReferenceCount |
int | getRefCount () |
| Returns the current reference count. More...
|
|
| ref () |
| Explicitly increments the reference count. More...
|
|
bool | testRefCountIntegrity () |
| Does some easy checks to make sure that the reference count isn't completely bogus. More...
|
|
bool | testRefCountNonzero () |
| Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More...
|
|
bool | unref () |
| Explicitly decrements the reference count. More...
|
|
Public Member Functions inherited from Namable |
| __init__ (const Namable) |
|
| __init__ (str initial_name) |
|
| clearName () |
| Resets the Namable's name to empty. More...
|
|
str | getName () |
|
bool | hasName () |
| Returns true if the Namable has a nonempty name set, false if the name is empty. More...
|
|
| output (Ostream out) |
| Outputs the Namable. More...
|
|
| setName (str name) |
|
Public Attributes inherited from Thread |
int | current_pipeline_stage |
| Returns the integer pipeline stage associated with the current thread. More...
|
|
TypedReferenceCount | current_task |
| Returns the task currently executing on this thread (via the AsyncTaskManager), if any, or NULL if the thread is not currently servicing a task. More...
|
|
Thread | current_thread |
| Returns a pointer to the currently-executing Thread object. More...
|
|
Thread | external_thread |
| Returns a pointer to the "external" Thread object–this is a special Thread object that corresponds to any thread spawned outside of Panda's threading interface. More...
|
|
bool | joinable |
| Returns the value of joinable that was passed to the start() call. More...
|
|
Thread | main_thread |
| Returns a pointer to the "main" Thread object–this is the Thread that started the whole process. More...
|
|
int | pipeline_stage |
| Returns the Pipeline stage number associated with this thread. More...
|
|
int | pstats_index |
| Returns the PStats index associated with this thread, or -1 if no index has yet been associated with this thread. More...
|
|
int | python_index |
| Returns the Python index associated with this thread, or -1 if no index has yet been associated with this thread. More...
|
|
bool | simple_threads |
| Returns true if Panda is currently compiled for "simple threads", which is to say, cooperative context switching only, reducing the need for quite so many critical section protections. More...
|
|
bool | started |
| Returns true if the thread has been started, false if it has not, or if join() has already been called. More...
|
|
const String | sync_name |
| Returns the sync name of the thread. More...
|
|
bool | threading_supported |
| Returns true if threading support has been compiled in and enabled, or false if no threading is available (and Thread::start() will always fail). More...
|
|
bool | true_threads |
| Returns true if a real threading library is available that supports actual OS-implemented threads, or false if the only threading we can provide is simulated user-space threading. More...
|
|
String | unique_id |
| Returns a string that is guaranteed to be unique to this thread, across all processes on the machine, during at least the lifetime of this process. More...
|
|
Public Attributes inherited from TypedObject |
TypeHandle | type |
| Returns the TypeHandle representing this object's type. More...
|
|
Public Attributes inherited from ReferenceCount |
int | ref_count |
| The current reference count. More...
|
|
Public Attributes inherited from Namable |
const String | name |
|
The special "external thread" class.
There is one instance of these in the world, and it is returned by Thread::get_external_thread().