rodecomp/Source/Utility/Async/NAsyncWorkThread.h
ragnarok-clanker a47d20f8be Reconstruct readable C++ and organize cohesive source subsystems
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
2026-10-25 07:42:41 +00:00

33 lines
993 B
C++

#ifndef RAGNAROK_SOURCE_UTILITY_ASYNC_NASYNCWORKTHREAD_H
#define RAGNAROK_SOURCE_UTILITY_ASYNC_NASYNCWORKTHREAD_H
#include "Utility/Async/NAsyncWorkQueue.h"
#include "Utility/Async/NMessageMgr.h"
#include "Utility/Async/NMessageQueue.h"
#include "Utility/Async/NObject.h"
#include "Utility/Threading/NThread.h"
class NAsyncWorkThread : public NObject, public NInter, public NThread {
friend class NAsyncWorkMgr;
public:
NAsyncWorkThread(NAsyncWorkRequestQueue* requests, NAsyncWorkResponseQueue* responses);
~NAsyncWorkThread() override;
void Receive(std::uint64_t argument, std::uint32_t id) override;
unsigned Run() override;
void RequestStop() override;
bool Start();
void Stop();
protected:
/* 0038 */ bool m_registered;
/* 003C */ NMessageQueue m_messages;
/* 0074 */ NAsyncWorkRequestQueue* m_requests;
/* 0078 */ NAsyncWorkResponseQueue* m_responses;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(NAsyncWorkThread) == 124);
#endif
#endif