Infineon Logo AIROC BTSDK v4.6 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Worker Threads

Worker thread management functions. More...

Functions

wiced_result_t wiced_rtos_init_worker_thread (wiced_worker_thread_t *worker_thread, uint8_t priority, uint32_t stack_size, uint32_t event_queue_size)
 Creates a worker thread. More...
 
wiced_worker_thread_t * wiced_rtos_create_worker_thread (void)
 Creates a new instance of worker thread. More...
 

Detailed Description

Worker thread management functions.

Function Documentation

wiced_worker_thread_t* wiced_rtos_create_worker_thread ( void  )

Creates a new instance of worker thread.

Creates a new worker thread (Allocates memory for a new worker thread instance and returns the pointer)

Returns
valid pointer : on success.
NULL : if an error occurred
wiced_result_t wiced_rtos_init_worker_thread ( wiced_worker_thread_t *  worker_thread,
uint8_t  priority,
uint32_t  stack_size,
uint32_t  event_queue_size 
)

Creates a worker thread.

Creates a worker thread A worker thread is a thread in whose context timed and asynchronous events execute.

Parameters
worker_thread: a pointer to the worker thread to be created
priority: thread priority
stack_size: thread's stack size in number of bytes
event_queue_size: number of events can be pushed into the queue
Returns
WICED_SUCCESS : on success.
WICED_ERROR : if an error occurred