Panda3D
|
00001 // Filename: externalThread.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 "externalThread.h" 00016 00017 TypeHandle ExternalThread::_type_handle; 00018 00019 //////////////////////////////////////////////////////////////////// 00020 // Function: ExternalThread::Constructor 00021 // Access: Private 00022 // Description: This constructor is used to create the one global 00023 // ExternalThread object that is shared by all 00024 // externally-created threads that are not specifically 00025 // bound to a particular Thread object. 00026 //////////////////////////////////////////////////////////////////// 00027 ExternalThread:: 00028 ExternalThread() : Thread("External", "External") { 00029 init_type(); // in case static init comes in the wrong order 00030 _started = true; 00031 } 00032 00033 //////////////////////////////////////////////////////////////////// 00034 // Function: ExternalThread::Constructor 00035 // Access: Private 00036 // Description: This constructor is used to create the particular 00037 // Thread object for each external thread that is bound 00038 // via Thread::bind_thread(). 00039 //////////////////////////////////////////////////////////////////// 00040 ExternalThread:: 00041 ExternalThread(const string &name, const string &sync_name) : 00042 Thread(name, sync_name) 00043 { 00044 _started = true; 00045 } 00046 00047 //////////////////////////////////////////////////////////////////// 00048 // Function: ExternalThread::thread_main 00049 // Access: Private, Virtual 00050 // Description: 00051 //////////////////////////////////////////////////////////////////// 00052 void ExternalThread:: 00053 thread_main() { 00054 }