thunderbrew/src/model/CM2Cache.hpp
2023-01-05 20:58:16 -06:00

27 lines
581 B
C++

#ifndef MODEL_C_M2_CACHE_HPP
#define MODEL_C_M2_CACHE_HPP
#include <cstdint>
class CM2Shared;
class CM2Cache {
public:
// Static variables
static CM2Cache s_cache;
// Member variables
uint32_t m_initialized = 0;
uint32_t m_flags = 0;
// Member functions
void BeginThread(void (*callback)(void*), void* arg);
CM2Shared* CreateShared(const char*, uint32_t);
void GarbageCollect(int32_t a2);
int32_t Initialize(uint32_t flags);
void UpdateShared();
void WaitThread();
};
#endif