Panda3D
externalThread.cxx
1 // Filename: externalThread.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 "externalThread.h"
16 
17 TypeHandle ExternalThread::_type_handle;
18 
19 ////////////////////////////////////////////////////////////////////
20 // Function: ExternalThread::Constructor
21 // Access: Private
22 // Description: This constructor is used to create the one global
23 // ExternalThread object that is shared by all
24 // externally-created threads that are not specifically
25 // bound to a particular Thread object.
26 ////////////////////////////////////////////////////////////////////
27 ExternalThread::
28 ExternalThread() : Thread("External", "External") {
29  init_type(); // in case static init comes in the wrong order
30  _started = true;
31 }
32 
33 ////////////////////////////////////////////////////////////////////
34 // Function: ExternalThread::Constructor
35 // Access: Private
36 // Description: This constructor is used to create the particular
37 // Thread object for each external thread that is bound
38 // via Thread::bind_thread().
39 ////////////////////////////////////////////////////////////////////
40 ExternalThread::
41 ExternalThread(const string &name, const string &sync_name) :
42  Thread(name, sync_name)
43 {
44  _started = true;
45 }
46 
47 ////////////////////////////////////////////////////////////////////
48 // Function: ExternalThread::thread_main
49 // Access: Private, Virtual
50 // Description:
51 ////////////////////////////////////////////////////////////////////
52 void ExternalThread::
53 thread_main() {
54 }
A thread; that is, a lightweight process.
Definition: thread.h:51
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85