我要评分
获取效率
正确性
完整性
易理解

HTL_thread_executor_self

Obtains the executor that is running the calling worker.

Interface Definition

int HTL_thread_executor_self(HTL_thread_executor_t *executor);

Description

HTL_thread_executor_self() is used to obtain the executor that is running the calling worker.

Parameters

Parameter

Type

Description

Input/Output

executor

HTL_thread_executor_t *

Address of the handle to the executor.

Output

Return Value

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

Example

1
2
    HTL_thread_executor_t executor;
    HTL_thread_executor_self(&executor);