prime/include/Kyoto/CARAMManager.hpp

26 lines
667 B
C++
Raw Normal View History

#ifndef _CARAMMANAGER
#define _CARAMMANAGER
#include "types.h"
class CARAMManager {
public:
static void Shutdown();
static void CollectGarbage();
2022-09-18 06:05:46 +00:00
static void PreInitializeAlloc(uint size) { mPreInitializeAlloc += size; }
static void Initialize(uint);
static void WaitForAllDMAsToComplete();
2022-12-03 21:31:54 +00:00
static void* GetInvalidAlloc() { return kInvalidAlloc; }
static uint GetInvalidDMAHandle() { return kInvalidHandle; }
static bool CancelDMA(uint);
static void WaitForDMACompletion(uint);
static void Free(const void* ptr);
private:
static uint mPreInitializeAlloc;
2022-12-03 21:31:54 +00:00
static void* kInvalidAlloc;
static int kInvalidHandle;
};
#endif // _CARAMMANAGER