NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
snd_TaskThread.h
1#ifndef NW4R_SND_TASK_THREAD_H
2#define NW4R_SND_TASK_THREAD_H
3
4/*******************************************************************************
5 * headers
6 */
7
8#include <types.h>
9
10#include <revolution/OS/OSThread.h>
11
12/*******************************************************************************
13 * classes and functions
14 */
15
16namespace nw4r { namespace snd { namespace detail
17{
18 // [R89JEL]:/bin/RVL/Debug/mainD.elf:.debug::0x4b348
19 class TaskThread
20 {
21 // methods
22 public:
23 // cdtors
24 TaskThread();
25 ~TaskThread();
26
27 // methods
28 bool Create(s32 priority, void *stack, ulong stackSize);
29 void Destroy();
30
31 private:
32 // fibers, callbacks, and procedures
33 static void *ThreadFunc(void *arg);
34 void ThreadProc();
35
36 // members
37 private:
38 OSThread mThread; // size 0x318, offset 0x000
39 ulong *mStackEnd; // size 0x004, offset 0x318
40 bool mFinishFlag; // size 0x001, offset 0x31c // TODO: volatile? (see ThreadProc)
41 bool mCreateFlag; // size 0x001, offset 0x31d
42 /* 2 bytes padding */
43 }; // size 0x320
44}}} // namespace nw4r::snd::detail
45
46#endif // NW4R_SND_TASK_THREAD_H