Panda3D
 All Classes Functions Variables Enumerations
pStatThread.cxx
00001 // Filename: pStatThread.cxx
00002 // Created by:  drose (30Jan06)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "pStatThread.h"
00016 #include "pStatClient.h"
00017 
00018 ////////////////////////////////////////////////////////////////////
00019 //     Function: PStatThread::get_thread
00020 //       Access: Published
00021 //  Description: Returns the Panda Thread object associated with this
00022 //               particular PStatThread.
00023 ////////////////////////////////////////////////////////////////////
00024 Thread *PStatThread::
00025 get_thread() const {
00026 #ifdef DO_PSTATS
00027   return _client->get_thread_object(_index);
00028 #else
00029   return Thread::get_current_thread();
00030 #endif
00031 }
 All Classes Functions Variables Enumerations