summaryrefslogtreecommitdiff
path: root/include/thread.h
diff options
context:
space:
mode:
authorfig02 <fig02srl@gmail.com>2025-06-04 14:38:33 -0400
committerGitHub <noreply@github.com>2025-06-04 14:38:33 -0400
commit28cc9d68cfe4a037eb232d5465b84a943539bca3 (patch)
tree4001d36dccb035576f3cbf17cf9a548cdc9c5b3f /include/thread.h
parente8b708a4480e568f409c8e53986c2e96595b9405 (diff)
Remove "z64" prefix from all headers (#2518)
* z64 - a * z64 - b * z64 - c * z64 - d * z64 - e * z64 - f * z64 - g * z64 - h * z64 - i * z64 - l * z64 - m * z64 - o * z64 - p * z64 - q * z64 - r * z64 - s * z64 - t * z64 - v * restore file * fix merge * fix merge --------- Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
Diffstat (limited to 'include/thread.h')
-rw-r--r--include/thread.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/thread.h b/include/thread.h
new file mode 100644
index 000000000..c3e52a407
--- /dev/null
+++ b/include/thread.h
@@ -0,0 +1,33 @@
+#ifndef THREAD_H
+#define THREAD_H
+
+#include "ultra64.h"
+
+#define THREAD_ID_IDLE 1
+#define THREAD_ID_FAULT 2
+#define THREAD_ID_MAIN 3
+#define THREAD_ID_GRAPH 4
+#define THREAD_ID_SCHED 5
+#define THREAD_ID_PADMGR 7
+#define THREAD_ID_N64DD 8
+#define THREAD_ID_DDMSG 9
+#define THREAD_ID_AUDIOMGR 10
+#define THREAD_ID_DMAMGR 18
+#define THREAD_ID_IRQMGR 19
+
+#define THREAD_PRI_IDLE_INIT 10
+#define THREAD_PRI_MAIN_INIT 10
+#define THREAD_PRI_DMAMGR_LOW 10 // Used when decompressing files
+#define THREAD_PRI_GRAPH 11
+#define THREAD_PRI_AUDIOMGR 12
+#define THREAD_PRI_N64DD 13
+#define THREAD_PRI_DDMSG 13
+#define THREAD_PRI_PADMGR 14
+#define THREAD_PRI_MAIN 15
+#define THREAD_PRI_SCHED 15
+#define THREAD_PRI_DMAMGR 16
+#define THREAD_PRI_IRQMGR 17
+#define THREAD_PRI_FAULT_CLIENT (OS_PRIORITY_APPMAX - 1)
+#define THREAD_PRI_FAULT OS_PRIORITY_APPMAX
+
+#endif