HTL_thread_scheduler_get_pool_count
Obtains the number of pools associated with a specified scheduler.
Interface Definition
int HTL_thread_scheduler_get_pool_count(HTL_thread_scheduler_t scheduler, int *pool_count);
Description
HTL_thread_scheduler_get_pool_count() returns the number of thread pools associated with the scheduler and writes the result to pool_count.
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
scheduler |
HTL_thread_scheduler_t |
Handle to the scheduler. |
Input |
pool_count |
int * |
Number of pools associated with this scheduler. |
Output |
Return Value
- HTL_THREAD_SUCCESS: success.
- Other values: failure. For details, see the error code descriptions.
Example
1 2 | int num_pools; ret = HTL_thread_scheduler_get_pool_count(scheduler, &num_pools); |
Parent topic: Scheduler Functions