15 #include "config_pipeline.h" 16 #include "asyncTaskBase.h" 17 #include "mainThread.h" 18 #include "externalThread.h" 19 #include "genericThread.h" 21 #include "pythonThread.h" 22 #include "pandaSystem.h" 26 ConfigureDef(config_pipeline);
27 NotifyCategoryDef(pipeline,
"");
28 NotifyCategoryDef(thread,
"");
30 ConfigureFn(config_pipeline) {
35 (
"support-threads",
true,
36 PRC_DESC(
"Set this false to disallow the creation of threads using Panda's " 37 "Thread interface, even if threading support is compiled in. This " 38 "does not affect the operation of mutexes and other synchronization " 39 "primitives, just the creation of threads."));
42 (
"name-deleted-mutexes",
false,
43 PRC_DESC(
"Set this true to allocate a name to each Mutex object that " 44 "destructs, so if the Mutex is locked after destruction, we can " 45 "print out its name to aid debugging. This is only available " 46 "when compiled with DEBUG_THREADS. Enabling this variable will " 47 "cause a memory leak, so you should only enable it when you are " 48 "specifically tracking down an operation on a deleted Mutex. " 49 "It is not guaranteed to work, of course, because the memory " 50 "for a deleted Mutex may become reused for some other purpose."));
53 (
"thread-stack-size", 4194304,
54 PRC_DESC(
"Specifies the minimum size, in bytes, of the stack that will be " 55 "created for each newly-created thread. Not all thread " 56 "implementations respect this value."));
68 static bool initialized =
false;
74 AsyncTaskBase::init_type();
75 MainThread::init_type();
76 ExternalThread::init_type();
77 GenericThread::init_type();
80 PythonThread::init_type();
88 #endif // HAVE_THREADS 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.
void add_system(const string &system)
Intended for use by each subsystem to register itself at startup.
This is a convenience class to specialize ConfigVariable as an integer type.