20 #ifndef _LWPA_THREAD_H_
21 #define _LWPA_THREAD_H_
24 #include "lwpa_common.h"
25 #include "lwpa_bool.h"
41 _mqx_uint task_attributes;
45 #define LWPA_THREAD_DEFAULT_PRIORITY 11
46 #define LWPA_THREAD_DEFAULT_STACK 8000
47 #define LWPA_THREAD_DEFAULT_NAME "lwpa_thread"
48 #define LWPA_THREAD_MQX_DEFAULT_ATTRIBUTES NULL
49 #define LWPA_THREAD_MQX_DEFAULT_TIME_SLICE 0
61 #define lwpa_thread_sleep(sleep_ms) _time_delay(sleep_ms)
UNDEFINED lwpa_thread_t
The thread identifier.
Definition: lwpa_thread.dox:53
struct LwpaThreadParams LwpaThreadParams
A set of parameters for an lwpa_thread.
bool lwpa_thread_create(lwpa_thread_t *id, const LwpaThreadParams *params, void(*thread_fn)(void *), void *thread_arg)
Create a new thread.
Definition: lwpa_thread.c:35
bool lwpa_thread_stop(lwpa_thread_t *id, int wait_ms)
Stop a thread.
Definition: lwpa_thread.c:54
A set of parameters for an lwpa_thread.
Definition: lwpa_thread.dox:18
unsigned int thread_priority
The priority of the thread.
Definition: lwpa_thread.dox:21
void * platform_data
Pointer to a platform-specific parameter structure.
Definition: lwpa_thread.dox:28
unsigned int stack_size
The stack size of the thread.
Definition: lwpa_thread.dox:24
char * thread_name
A name for the thread, maximum length LWPA_THREAD_NAME_MAX_LENGTH.
Definition: lwpa_thread.dox:26
Definition: lwpa_thread.h:40
Definition: lwpa_thread.h:46