HTL_thread_scheduler_init_fn
Prototype of the function for initializing the scheduler.
Prototype
typedef int (*HTL_thread_scheduler_init_fn)(HTL_thread_scheduler_t, HTL_thread_scheduler_config_t);
Description
Scheduler initialization function init() that initializes the scheduler based on the scheduler configuration. If HTL_SUCCESS is not returned for init(), the scheduler fails to be created. init() is optional and can be set to NULL.
Parameters
Type |
Description |
Input/Output |
|---|---|---|
HTL_thread_scheduler_t |
Handle to the scheduler. |
Input |
HTL_thread_scheduler_config_t |
Scheduler configuration. |
Input |
Return Value
- HTL_THREAD_SUCCESS: success.
- Others: The scheduler fails to be created.
Parent topic: Schedulers