Panda3D
Loading...
Searching...
No Matches
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
16TypeHandle 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 */
23ExternalThread::
24ExternalThread() : 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 */
33ExternalThread::
34ExternalThread(const std::string &name, const std::string &sync_name) :
35 Thread(name, sync_name)
36{
37 _started = true;
38}
39
40/**
41 *
42 */
43void ExternalThread::
44thread_main() {
45}
A thread; that is, a lightweight process.
Definition thread.h:46
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.