Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
31 lines
787 B
C++
31 lines
787 B
C++
#ifndef RAGNAROK_SOURCE_UTILITY_ASYNC_NRECYCLEOBJECTPOOLMGR_H
|
|
#define RAGNAROK_SOURCE_UTILITY_ASYNC_NRECYCLEOBJECTPOOLMGR_H
|
|
|
|
#include "Utility/Async/NRecycleObject.h"
|
|
|
|
#include <string>
|
|
#include <unordered_map>
|
|
|
|
class NRecycleObjectPoolMgr {
|
|
public:
|
|
NRecycleObjectPoolMgr();
|
|
virtual ~NRecycleObjectPoolMgr();
|
|
NRecycleObject* Acquire(std::string poolName);
|
|
void Release(std::string poolName, NRecycleObject* object);
|
|
|
|
protected:
|
|
struct NameHash {
|
|
|
|
std::uint8_t unknown_0000 = 0;
|
|
std::size_t operator()(const std::string& name) const;
|
|
};
|
|
|
|
/* 0004 */ bool m_enabled;
|
|
/* 0008 */ std::unordered_map<std::string, NRecycleObjectPoolInter*, NameHash> m_pools;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(NRecycleObjectPoolMgr) == 44);
|
|
#endif
|
|
|
|
#endif
|