rodecomp/Source/Utility/Async/NAsyncWork.cpp
ragnarok-clanker e168b4e4a6 Restore translation-unit ownership and publish verified source corrections
Owner-authorized source migration: 31 helper-only translation units were merged into their callers or existing inline headers; both build manifests updated. Includes the preserved source payload, Lua configuration matching wowdecomp, and exact malloca expansion without diagnostic pragmas.

449 native units compiled locally and 449 staged units compiled by the pinned server toolchain. No previously byte-matched function regressed. Compiler mapping diagnostics remain recorded as needs_cleanup, not accepted or peer-confirmed. Existing independent review records are preserved. README.md is intentionally unchanged.
2026-10-25 15:42:21 +00:00

53 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
// OFFSET: 0x00731BD0
// FUNCTION: fn_07561
NAsyncWorkPtr::~NAsyncWorkPtr() {
if (this->m_work) {
this->m_manager->Release(this->m_work->PoolName(), this->m_work);
this->m_work = nullptr;
}
}