Files
FEX-Emu--FEX/Source/Windows/Common/SHMStats.h
T
2025-07-29 12:02:19 -07:00

30 lines
661 B
C++

// SPDX-License-Identifier: MIT
#pragma once
#include "Common/SHMStats.h"
namespace FEX::Windows {
class StatAlloc final : public FEX::SHMStats::StatAllocBase {
public:
StatAlloc(FEXCore::SHMStats::AppType AppType);
virtual ~StatAlloc();
FEXCore::SHMStats::ThreadStats* AllocateSlot(uint32_t TID) {
return StatAllocBase::AllocateSlot(TID);
}
void DeallocateSlot(FEXCore::SHMStats::ThreadStats* AllocatedSlot) {
if (!AllocatedSlot) {
return;
}
StatAllocBase::DeallocateSlot(AllocatedSlot);
}
private:
uint32_t FrontendAllocateSlots(uint32_t NewSize) override;
bool UsingNTQueryPath {};
};
} // namespace FEX::Windows