Adding Music Playback
This commit is contained in:
parent
7b325244c5
commit
231b30b2cb
12 changed files with 1840 additions and 149 deletions
|
|
@ -21,13 +21,14 @@ HeapAllocGlobal::~HeapAllocGlobal() = default;
|
|||
bool HeapAllocGlobal::checkLeaks() { return false; }
|
||||
void HeapAllocGlobal::startIgnore() {}
|
||||
void HeapAllocGlobal::stopIgnore() {}
|
||||
ualni HeapAllocGlobal::getNAllocations() { return 0; }
|
||||
|
||||
#else
|
||||
|
||||
tp::MemHead* tp::HeapAllocGlobal::mEntry = nullptr;
|
||||
tp::ualni tp::HeapAllocGlobal::mNumAllocations = 0;
|
||||
tp::Mutex tp::HeapAllocGlobal::mMutex;
|
||||
bool tp::HeapAllocGlobal::mIgnore;
|
||||
bool tp::HeapAllocGlobal::mIgnore = true;
|
||||
|
||||
// ----------------------- Debug Implementation ---------------------------- //
|
||||
// |----------------|
|
||||
|
|
@ -100,7 +101,9 @@ ALLOCATE:
|
|||
|
||||
// 3) Trace the stack
|
||||
#ifdef MEM_STACK_TRACE
|
||||
head->mCallStack = gCSCapture->getSnapshot();
|
||||
// check if somewhat decides to call new within static variable initialization
|
||||
if (gCSCapture) head->mCallStack = gCSCapture->getSnapshot();
|
||||
else head->mCallStack = nullptr;
|
||||
#endif
|
||||
|
||||
mMutex.unlock();
|
||||
|
|
@ -194,6 +197,10 @@ void HeapAllocGlobal::stopIgnore() {
|
|||
mMutex.unlock();
|
||||
}
|
||||
|
||||
ualni HeapAllocGlobal::getNAllocations() {
|
||||
return mNumAllocations;
|
||||
}
|
||||
|
||||
HeapAllocGlobal::~HeapAllocGlobal() = default;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue