mirror of
https://github.com/zeldaret/ss
synced 2026-05-24 07:10:53 -04:00
26af4db82d
* update from dtk-template and start work towards using clangd * include <a> -> "a" * Update build.yml * remove/add non-trivial class in union warning
35 lines
615 B
C++
35 lines
615 B
C++
#ifndef NW4R_SND_TASK_THREAD_H
|
|
#define NW4R_SND_TASK_THREAD_H
|
|
|
|
#include "rvl/OS.h" // IWYU pragma: export
|
|
|
|
namespace nw4r {
|
|
namespace snd {
|
|
namespace detail {
|
|
|
|
class TaskThread {
|
|
public:
|
|
TaskThread();
|
|
~TaskThread();
|
|
|
|
bool Create(s32 priority, void *pStack, u32 stackSize);
|
|
void Destroy();
|
|
|
|
private:
|
|
static void *ThreadFunc(void *pArg);
|
|
void ThreadProc();
|
|
|
|
private:
|
|
OSThread mThread; // at 0x0
|
|
u32 *mStackEnd; // at 0x318
|
|
|
|
volatile bool mFinishFlag; // at 0x31C
|
|
bool mCreateFlag; // at 0x31D
|
|
};
|
|
|
|
} // namespace detail
|
|
} // namespace snd
|
|
} // namespace nw4r
|
|
|
|
#endif
|