Panda3D
 All Classes Functions Variables Enumerations
Public Member Functions
Thread::PStatsCallback Class Reference

List of all members.

Public Member Functions

virtual ~PStatsCallback ()
 Since this class is just an interface definition, there is no need to have a destructor.
virtual void activate_hook (Thread *thread)
 Called when the thread is activated (resumes execution).
virtual void deactivate_hook (Thread *thread)
 Called when the thread is deactivated (swapped for another running thread).

Detailed Description

Definition at line 112 of file thread.h.


Constructor & Destructor Documentation

Since this class is just an interface definition, there is no need to have a destructor.

However, we must have one anyway to stop gcc's annoying warning.

Definition at line 539 of file thread.cxx.


Member Function Documentation

void Thread::PStatsCallback::activate_hook ( Thread thread) [virtual]

Called when the thread is activated (resumes execution).

This is intended to provide a callback hook for PStats to assign time to individual threads properly, particularly in the SIMPLE_THREADS case.

Definition at line 564 of file thread.cxx.

void Thread::PStatsCallback::deactivate_hook ( Thread thread) [virtual]

Called when the thread is deactivated (swapped for another running thread).

This is intended to provide a callback hook for PStats to assign time to individual threads properly, particularly in the SIMPLE_THREADS case.

Definition at line 552 of file thread.cxx.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations