1#ifndef _THREAD_THREADX_H
2#define _THREAD_THREADX_H
41 Thread(
const std::string& threadName,
size_t maxQueueSize = 0);
77 static void Process(ULONG instance);
85 TX_SEMAPHORE m_exitSem;
89 std::unique_ptr<ULONG[]> m_stackMemory;
90 std::unique_ptr<ULONG[]> m_queueMemory;
92 const std::string THREAD_NAME;
95 static const ULONG STACK_SIZE = 2048;
Interface for cross-thread delegate dispatching.
Cross-platform thread for any system supporting C++11 std::thread (e.g. Windows, Linux).
Definition cmsis-rtos2/Thread.h:33
std::string GetThreadName()
Get thread name.
Definition threadx/Thread.h:67
TX_THREAD * GetThreadId()
Get the ID of this thread instance.
UINT GetThreadPriority()
Get current priority.
static TX_THREAD * GetCurrentThreadId()
Get the ID of the currently executing thread.
virtual void DispatchDelegate(std::shared_ptr< dmq::DelegateMsg > msg) override
Enqueues a delegate message for execution on this thread.
static const uint32_t DEFAULT_QUEUE_SIZE
Default queue size if 0 is passed.
Definition cmsis-rtos2/Thread.h:36
void SetThreadPriority(osPriority_t priority)
Definition cmsis-rtos2/Thread.cpp:71
Thread(const std::string &threadName, size_t maxQueueSize=0)
void ExitThread()
Terminate the thread gracefully.
A class to hold a platform-specific thread messsage that will be passed through the OS message queue.
Definition cmsis-rtos2/ThreadMsg.h:12
A base class for a delegate enabled execution thread. Implemented by application code if asynchronous...
Definition IThread.h:22