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)
23bool __tau_shutdown =
false;
39 if (memory_hook ==
nullptr) {
52static InitMemoryHook _imh_object;
54#if defined(HAVE_THREADS) && defined(SIMPLE_THREADS)
57default_thread_yield() {
60default_thread_consider_yield() {
62void (*global_thread_yield)() = default_thread_yield;
63void (*global_thread_consider_yield)() = default_thread_consider_yield;
67default_thread_state_swap(PyThreadState *state) {
70PyThreadState *(*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.