summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
new file mode 100644
index 000000000..c3cdca31f
--- /dev/null
+++ b/src/core/hle/kernel/thread.h
@@ -0,0 +1,36 @@
1// Copyright 2014 Citra Emulator Project / PPSSPP Project
2// Licensed under GPLv2
3// Refer to the license.txt file included.
4
5#pragma once
6
7#include "common/common_types.h"
8
9enum ThreadStatus {
10 THREADSTATUS_RUNNING = 1,
11 THREADSTATUS_READY = 2,
12 THREADSTATUS_WAIT = 4,
13 THREADSTATUS_SUSPEND = 8,
14 THREADSTATUS_DORMANT = 16,
15 THREADSTATUS_DEAD = 32,
16
17 THREADSTATUS_WAITSUSPEND = THREADSTATUS_WAIT | THREADSTATUS_SUSPEND
18};
19
20struct ThreadContext {
21 void reset();
22
23 u32 reg[16];
24 u32 cpsr;
25 u32 pc;
26};
27
28void __KernelThreadingInit();
29void __KernelThreadingShutdown();
30
31//const char *__KernelGetThreadName(SceUID threadID);
32//
33//void __KernelSaveContext(ThreadContext *ctx);
34//void __KernelLoadContext(ThreadContext *ctx);
35
36//void __KernelSwitchContext(Thread *target, const char *reason); \ No newline at end of file