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

HTL_thread_get_args

Obtains thread parameters.

Interface Definition

int HTL_thread_get_args(HTL_thread_t thread, void **thread_args);

Description

HTL_thread_get_args() is used to obtain the parameters of the thread running function and return the result through thread_args.

Parameters

Parameter

Type

Description

Input/Output

thread

HTL_thread_t

Handle to the thread.

Input

thread_args

void **

Parameter of the running function.

Output

Return Value

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

Example

1
2
3
4
    HTL_thread_t self;
    void *ret_arg = NULL;
    self = HTL_thread_self();
    ret = HTL_thread_get_args(self, &ret_arg);