mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-06-10 01:55:59 +00:00
Added specification of stack and control block size for RtosThread
This commit is contained in:
parent
8363e0d93c
commit
a22f034462
@ -77,8 +77,10 @@ namespace sta
|
|||||||
*
|
*
|
||||||
* @param name The thread's name. Will be used for debugging.
|
* @param name The thread's name. Will be used for debugging.
|
||||||
* @param prio The thread's priority.
|
* @param prio The thread's priority.
|
||||||
|
* @param stack_size The thread's stack size. Default of 0 refers to the RTOS2 default stack size specified in the IOC.
|
||||||
|
* @param cb_size The thread's control block size. Default of 0 refers to the RTOS2 default control block size specified in the IOC.
|
||||||
*/
|
*/
|
||||||
RtosThread(const char* name, osPriority_t prio);
|
RtosThread(const char* name, osPriority_t prio, uint32_t stack_size = 0, uint32_t cb_size = 0);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get the currently running instance.
|
* @brief Get the currently running instance.
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
|
|
||||||
namespace sta
|
namespace sta
|
||||||
{
|
{
|
||||||
RtosThread::RtosThread(const char* name, osPriority_t prio)
|
RtosThread::RtosThread(const char* name, osPriority_t prio, uint32_t stack_size /* = 0 */, uint32_t cb_size /* = 0 */)
|
||||||
: instance_{NULL},
|
: instance_{NULL},
|
||||||
attribs_{ .name = name, .priority = prio }
|
attribs_{ .name = name, .cb_size = cb_size, .stack_size = stack_size, .priority = prio }
|
||||||
{}
|
{}
|
||||||
|
|
||||||
osThreadId_t RtosThread::getInstance()
|
osThreadId_t RtosThread::getInstance()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user