Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
TaskThread.h
Go to the documentation of this file.
1#ifndef NW4HBM_SND_TASK_THREAD_H
2#define NW4HBM_SND_TASK_THREAD_H
3
4#include <revolution/os.h>
5#include "snd_types.h"
6
7
8namespace nw4hbm {
9 namespace snd {
10 namespace detail {
11 class TaskThread {
12 public:
13 TaskThread() : mCreateFlag(false) {}
14
15 bool Create(s32 priority);
17
19
20 void ThreadProc();
21
22 static void* ThreadFunc(void* arg);
23
25
26 enum {
30 };
31
32 private:
33 static const int MSG_QUEUE_CAPACITY = 8;
34
35 /* 0x0000 */ OSThread mThread;
40 /* 0x2360 */ bool mCreateFlag;
41 /* 0x2361 */ u8 mPadding[3];
42 };
43 } // namespace detail
44 } // namespace snd
45} // namespace nw4hbm
46
47#endif
Definition TaskThread.h:11
OSMessage mMsgBuffer[MSG_QUEUE_CAPACITY]
Definition TaskThread.h:39
TaskThread()
Definition TaskThread.h:13
@ MSG_EXECUTE
Definition TaskThread.h:28
@ MSG_NONE
Definition TaskThread.h:27
@ MSG_DONE
Definition TaskThread.h:29
u8 mPadding[3]
Definition TaskThread.h:41
u64 mThreadStack[THREAD_STACK_SIZE]
Definition TaskThread.h:36
OSThreadQueue mThreadQueue
Definition TaskThread.h:37
static void * ThreadFunc(void *arg)
static const int MSG_QUEUE_CAPACITY
Definition TaskThread.h:33
static TaskThread & GetInstance()
OSThread mThread
Definition TaskThread.h:35
OSMessageQueue mMsgQueue
Definition TaskThread.h:38
bool mCreateFlag
Definition TaskThread.h:40
void * OSMessage
Definition OSMessage.h:13
int BOOL
Definition types.h:33
unsigned long long int u64
Definition types.h:14
signed long s32
Definition types.h:11
unsigned char u8
Definition types.h:8
static const int THREAD_STACK_SIZE
Definition snd_types.h:45
Definition HBMAnmController.h:6
Definition OSMessage.h:18
Definition OSThread.h:22
Definition OSThread.h:42