Remove mutex class and use std

This commit is contained in:
Ilusha 2024-01-17 22:42:48 +03:00
parent 69cdf43909
commit f146ddd307
5 changed files with 5 additions and 22 deletions

View file

@ -27,7 +27,7 @@ ualni HeapAllocGlobal::getNAllocations() { return 0; }
tp::MemHead* tp::HeapAllocGlobal::mEntry = nullptr;
tp::ualni tp::HeapAllocGlobal::mNumAllocations = 0;
tp::Mutex tp::HeapAllocGlobal::mMutex;
std::mutex tp::HeapAllocGlobal::mMutex;
bool tp::HeapAllocGlobal::mIgnore = true;
// ----------------------- Debug Implementation ---------------------------- //

View file

@ -1,7 +1,7 @@
#pragma once
#include "Module.hpp"
#include "Multithreading.hpp"
#include <mutex>
namespace tp {
@ -10,7 +10,7 @@ namespace tp {
#ifdef MEM_DEBUG
static ualni mNumAllocations;
static struct MemHead* mEntry;
static Mutex mMutex;
static std::mutex mMutex;
static bool mIgnore;
#endif