24 #if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_PANDA_PIPELINE) 25 #error Buildsystem error: BUILDING_PANDA_PIPELINE not defined 28 ConfigureDef(config_pipeline);
29 NotifyCategoryDef(pipeline,
"");
30 NotifyCategoryDef(thread,
"");
32 ConfigureFn(config_pipeline) {
37 (
"support-threads",
true,
38 PRC_DESC(
"Set this false to disallow the creation of threads using Panda's " 39 "Thread interface, even if threading support is compiled in. This " 40 "does not affect the operation of mutexes and other synchronization " 41 "primitives, just the creation of threads."));
44 (
"name-deleted-mutexes",
false,
45 PRC_DESC(
"Set this true to allocate a name to each Mutex object that " 46 "destructs, so if the Mutex is locked after destruction, we can " 47 "print out its name to aid debugging. This is only available " 48 "when compiled with DEBUG_THREADS. Enabling this variable will " 49 "cause a memory leak, so you should only enable it when you are " 50 "specifically tracking down an operation on a deleted Mutex. " 51 "It is not guaranteed to work, of course, because the memory " 52 "for a deleted Mutex may become reused for some other purpose."));
55 (
"thread-stack-size", 4194304,
56 PRC_DESC(
"Specifies the minimum size, in bytes, of the stack that will be " 57 "created for each newly-created thread. Not all thread " 58 "implementations respect this value."));
68 static bool initialized =
false;
75 CycleData::init_type();
78 MainThread::init_type();
79 ExternalThread::init_type();
80 GenericThread::init_type();
88 #endif // HAVE_THREADS PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static PandaSystem * get_global_ptr()
Returns the global PandaSystem object.
This class is used as a namespace to group several global properties of Panda.
This is a convenience class to specialize ConfigVariable as a boolean type.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void add_system(const std::string &system)
Intended for use by each subsystem to register itself at startup.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a convenience class to specialize ConfigVariable as an integer type.
void init_libpipeline()
Initializes the library.