From aa8a313291c313e838062021a26487901c3ab8c2 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 30 Jan 2022 20:52:32 +0100 Subject: [PATCH] Give the thread a proper name --- src/utils/CThread.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/CThread.h b/src/utils/CThread.h index d0300ba..3f3541e 100644 --- a/src/utils/CThread.h +++ b/src/utils/CThread.h @@ -37,8 +37,10 @@ public: //! allocate the stack pThreadStack = (uint8_t *) memalign(0x20, iStackSize); //! create the thread - if (pThread && pThreadStack) + if (pThread && pThreadStack) { OSCreateThread(pThread, &CThread::threadCallback, 1, (char *) this, pThreadStack + iStackSize, iStackSize, iPriority, iAttributes); + OSSetThreadName(pThread, "FTP Server Thread"); + } } //! destructor