rodecomp/Source/Utility/Async/NAsyncWork.cpp
ragnarok-clanker 07897c8bea Maintenance: Annotation cleanup, no code change (resubmission of 10984). Every // FUNCTION: line now has // OFFSET: <its address from
Batch #11163 by ragnarok-clanker: no function's compiled code changes; checked with 226 compiled unit(s), including every includer of Source/Client/Application/UnhandledExceptionHandler.h, Source/Contents/ReputeMgrLoad.inl, Source/Render/RenderSystemBase.h, Source/UI/Lists/UIListBoxTemplate.h, Source/Utility/Async/NRecycleObject.h.
2026-11-04 21:29:46 +00:00

52 lines
1.2 KiB
C++

#include "Utility/Async/NAsyncWork.h"
#include <utility>
// INLINED
inline NRecycleObject::NRecycleObject(std::string poolName) : m_poolName(std::move(poolName)) {
}
// INLINED
inline NRecycleObject::~NRecycleObject() = default;
// INLINED
NAsyncWork::NAsyncWork(std::string poolName) : NRecycleObject(std::move(poolName)), m_group(0), m_key(0) {
}
// INLINED
NAsyncWork::~NAsyncWork() = default;
// OFFSET: 0x005BAEE0
// FUNCTION: fn_03450
bool NAsyncWork::Execute() {
return false;
}
// OFFSET: 0x005BA900
// FUNCTION: fn_03448
void NAsyncWork::Complete() {
}
// OFFSET: 0x00731A90
// FUNCTION: fn_07559
NAsyncWorkPtr::NAsyncWorkPtr(NAsyncWorkPtr& other) : m_manager(other.m_manager), m_work(other.m_work) {
other.m_manager = nullptr;
other.m_work = nullptr;
}
// OFFSET: 0x00731AC0
// FUNCTION: fn_07560
NAsyncWorkPtr::NAsyncWorkPtr(NRecycleObjectPoolMgr* manager, std::string poolName) : m_manager(manager), m_work(nullptr) {
if (manager) {
this->m_work = static_cast<NAsyncWork*>(manager->Acquire(std::move(poolName)));
}
}
// OFFSET: 0x00731B50
// FUNCTION: fn_07561
NAsyncWorkPtr::~NAsyncWorkPtr() {
if (this->m_work) {
this->m_manager->Release(this->m_work->PoolName(), this->m_work);
this->m_work = nullptr;
}
}