summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSean Miller <seanmiller999@gmail.com>2026-04-16 13:15:04 +0100
committerSean Miller <seanmiller999@gmail.com>2026-04-16 13:15:04 +0100
commit0aeec983a4d18b12367a7c68c05e89abb05cff35 (patch)
tree88260e0372fabec145795e0f7d98f076c114bf34 /src
parent9eb87eb75ec6f8845b4066dd8e7684d752e8b2b9 (diff)
Rename ThreadMonitor to ThreadMgr
Diffstat (limited to 'src')
-rw-r--r--src/egg/core/eggThreadMgr.cpp (renamed from src/egg/core/eggThreadMonitor.cpp)12
-rw-r--r--src/m/m_thread.cpp6
2 files changed, 9 insertions, 9 deletions
diff --git a/src/egg/core/eggThreadMonitor.cpp b/src/egg/core/eggThreadMgr.cpp
index c7b2a5c6..e5fcd44a 100644
--- a/src/egg/core/eggThreadMonitor.cpp
+++ b/src/egg/core/eggThreadMgr.cpp
@@ -1,12 +1,12 @@
-#include "egg/core/eggThreadMonitor.h"
+#include "egg/core/eggThreadMgr.h"
#include "rvl/OS.h"
namespace EGG {
-ThreadMonitor *ThreadMonitor::sInstance; // Never initialized
+ThreadMgr *ThreadMgr::sInstance; // Never initialized
-s32 ThreadMonitor::getThreadIndex(OSThread *thread) {
+s32 ThreadMgr::getThreadIndex(OSThread *thread) {
for (s32 i = 0; i < mThreadCount; i++) {
if (mThreadList[i].mThread == thread) {
return i;
@@ -15,7 +15,7 @@ s32 ThreadMonitor::getThreadIndex(OSThread *thread) {
return -1;
}
-s32 ThreadMonitor::doRegisterThread(OSThread *thread) {
+s32 ThreadMgr::doRegisterThread(OSThread *thread) {
if (mThreadCount != mMaxThreads) {
s32 i = mThreadCount;
@@ -37,7 +37,7 @@ s32 ThreadMonitor::doRegisterThread(OSThread *thread) {
return -1;
}
-void ThreadMonitor::sortByPriority() {
+void ThreadMgr::sortByPriority() {
// Selection sort on thread priority
for (s32 i = 0; i < mThreadCount - 1; i++) {
OSPriority minPrio = 31;
@@ -59,7 +59,7 @@ void ThreadMonitor::sortByPriority() {
}
}
-void ThreadMonitor::registerThread(OSThread *thread, UnknownStruct arg) {
+void ThreadMgr::registerThread(OSThread *thread, UnknownStruct arg) {
s32 i = getThreadIndex(thread);
if (i == -1) {
i = doRegisterThread(thread);
diff --git a/src/m/m_thread.cpp b/src/m/m_thread.cpp
index 3311b080..e9a1a136 100644
--- a/src/m/m_thread.cpp
+++ b/src/m/m_thread.cpp
@@ -1,10 +1,10 @@
#include "m/m_thread.h"
-#include "egg/core/eggThreadMonitor.h"
+#include "egg/core/eggThreadMgr.h"
#include "rvl/OS/OSThread.h"
void mThread::registerThread(OSThread *thread, void *threadArg) {
- if (threadArg && EGG::ThreadMonitor::getInstance()) {
- EGG::ThreadMonitor::getInstance()->registerThread(thread, *(EGG::UnknownStruct *)threadArg);
+ if (threadArg && EGG::ThreadMgr::getInstance()) {
+ EGG::ThreadMgr::getInstance()->registerThread(thread, *(EGG::UnknownStruct *)threadArg);
}
}