17 #if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_DTOOL_DTOOLBASE)
18 #error Buildsystem error: BUILDING_DTOOL_DTOOLBASE not defined
21 #if defined(USE_TAU) && defined(WIN32)
23 bool __tau_shutdown =
false;
39 if (memory_hook ==
nullptr) {
46 class InitMemoryHook {
52 static InitMemoryHook _imh_object;
54 #if defined(HAVE_THREADS) && defined(SIMPLE_THREADS)
57 default_thread_yield() {
60 default_thread_consider_yield() {
62 void (*global_thread_yield)() = default_thread_yield;
63 void (*global_thread_consider_yield)() = default_thread_consider_yield;
66 static PyThreadState *
67 default_thread_state_swap(PyThreadState *state) {
70 PyThreadState *(*global_thread_state_swap)(PyThreadState *tstate) = default_thread_state_swap;
This class provides a wrapper around the various possible malloc schemes Panda might employ.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.