Give the thread a proper name

This commit is contained in:
Maschell 2022-01-30 20:52:32 +01:00
parent 209ef3d6a1
commit aa8a313291

View File

@ -37,8 +37,10 @@ public:
//! allocate the stack //! allocate the stack
pThreadStack = (uint8_t *) memalign(0x20, iStackSize); pThreadStack = (uint8_t *) memalign(0x20, iStackSize);
//! create the thread //! create the thread
if (pThread && pThreadStack) if (pThread && pThreadStack) {
OSCreateThread(pThread, &CThread::threadCallback, 1, (char *) this, pThreadStack + iStackSize, iStackSize, iPriority, iAttributes); OSCreateThread(pThread, &CThread::threadCallback, 1, (char *) this, pThreadStack + iStackSize, iStackSize, iPriority, iAttributes);
OSSetThreadName(pThread, "FTP Server Thread");
}
} }
//! destructor //! destructor