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

Worker thread management functions. More...

Functions

wiced_worker_thread_t * wiced_rtos_create_worker_thread (void)
 Creates a new instance of a worker thread. More...
 
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)
 Initializes and starts a 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 a worker thread.

Creates a new worker thread (Allocates memory for a new worker thread instance and returns the pointer) A worker thread is a thread in whose context timed and asynchronous events execute.

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 
)

Initializes and starts a worker thread.

Initializes and starts 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 Note : The number of buffers in wiced_bt_cfg_settings_t.max_number_of_buffer_pools must be increased for each worker thread the application will utilize.