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
HTL_thread_executor_t executor;
HTL_thread_executor_self(&executor);
Parent topic: Executor Functions