mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-08 18:00:17 +02:00
30 lines
661 B
C++
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
|