EtcPal
0.3.0
ETC Platform Abstraction Layer (EtcPal)
|
View other versions:
|
A set of parameters for an etcpal_thread.
The members of this structure are not all honored on all platforms. Here is a breakdown:
Platform | Priority Honored | Stack Size Honored | Thread Name Honored | Platform Data Available |
---|---|---|---|---|
FreeRTOS | Yes | Yes | Yes | No |
Linux | No | Yes | No | No |
macOS | No | Yes | No | No |
MQX | Yes | Yes | Yes | Yes, EtcPalThreadParamsMqx |
Windows | Yes | Yes | Yes | No |
Data Fields | |
unsigned int | priority |
The priority of the thread. More... | |
unsigned int | stack_size |
The stack size of the thread. More... | |
const char * | thread_name |
A name for the thread, maximum length ETCPAL_THREAD_NAME_MAX_LENGTH. | |
void * | platform_data |
Pointer to a platform-specific parameter structure. More... | |
void* platform_data |
Pointer to a platform-specific parameter structure.
This is used to set thread attributes that are not shared between platforms. Currently the only platform that has a valid value for this member is MQX, which has the following structure:
unsigned int priority |
The priority of the thread.
Note that thread priority is not valid on all platforms.
unsigned int stack_size |
The stack size of the thread.
Note that thread stack size is not valid on all platforms.