Panda3D
Public Member Functions | List of all members
Thread::PStatsCallback Class Reference

Public Member Functions

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

Detailed Description

Definition at line 123 of file thread.h.

Constructor & Destructor Documentation

◆ ~PStatsCallback()

Thread::PStatsCallback::~PStatsCallback ( )
virtual

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 238 of file thread.cxx.

Member Function Documentation

◆ activate_hook()

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 256 of file thread.cxx.

◆ deactivate_hook()

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 247 of file thread.cxx.


The documentation for this class was generated from the following files: