HTL_thread_set_args
Sets thread parameters.
Interface Definition
int HTL_thread_set_args(HTL_thread_t thread, void *thread_args);
Description
HTL_thread_set_args() is used to set the parameter thread_args of the thread running function.
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
thread |
HTL_thread_t |
Handle to the thread. |
Input |
thread_args |
void * |
Parameter of the running function. |
Input |
Return Value
- HTL_THREAD_SUCCESS: success.
- Other values: failure. For details, see the error code descriptions.
Example
1 2 3 | HTL_thread_t self; self = HTL_thread_self(); int ret = HTL_thread_set_args(self, (void *)th); |
Parent topic: Thread Functions