Panda3D
pStatThread.cxx
1 // Filename: pStatThread.cxx
2 // Created by: drose (30Jan06)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "pStatThread.h"
16 #include "pStatClient.h"
17 
18 ////////////////////////////////////////////////////////////////////
19 // Function: PStatThread::get_thread
20 // Access: Published
21 // Description: Returns the Panda Thread object associated with this
22 // particular PStatThread.
23 ////////////////////////////////////////////////////////////////////
25 get_thread() const {
26 #ifdef DO_PSTATS
27  return _client->get_thread_object(_index);
28 #else
30 #endif
31 }
Thread * get_thread() const
Returns the Panda Thread object associated with this particular PStatThread.
Definition: pStatThread.cxx:25
static Thread * get_current_thread()
Returns a pointer to the currently-executing Thread object.
Definition: thread.I:145
A thread; that is, a lightweight process.
Definition: thread.h:51