Panda3D
panda
src
pipeline
externalThread.cxx
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file externalThread.cxx
10
* @author drose
11
* @date 2006-01-30
12
*/
13
14
#include "
externalThread.h
"
15
16
TypeHandle
ExternalThread::_type_handle;
17
18
/**
19
* This constructor is used to create the one global ExternalThread object
20
* that is shared by all externally-created threads that are not specifically
21
* bound to a particular Thread object.
22
*/
23
ExternalThread::
24
ExternalThread() :
Thread
(
"External"
,
"External"
) {
25
init_type();
// in case static init comes in the wrong order
26
_started =
true
;
27
}
28
29
/**
30
* This constructor is used to create the particular Thread object for each
31
* external thread that is bound via Thread::bind_thread().
32
*/
33
ExternalThread::
34
ExternalThread(
const
std::string &name,
const
std::string &sync_name) :
35
Thread
(name, sync_name)
36
{
37
_started =
true
;
38
}
39
40
/**
41
*
42
*/
43
void
ExternalThread::
44
thread_main() {
45
}
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:81
externalThread.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Thread
A thread; that is, a lightweight process.
Definition:
thread.h:46
Generated on Sun Dec 27 2020 13:23:14 for Panda3D by
1.8.20