Rate This Document
Findability
Accuracy
Completeness
Readability

HTL_thread_executor_get_num

Obtains the number of current executors.

Interface Definition

int HTL_thread_executor_get_num(int *num_executor);

Description

HTL_thread_executor_get_num() returns the number of executors in the HTL thread execution environment through num_executor. This function calculates the executors that are running and terminated.

Parameters

Parameter

Type

Description

Input/Output

num_executor

int *

Number of executors.

Output

Return Value

  • HTL_THREAD_SUCCESS: success.
  • Other values: failure. For details, see the error code descriptions.

Example

1
2
3
    int num_executor = 0;
    /* Get the number of executor */
    ret = HTL_thread_executor_get_num(&num_executor);