HTL_thread_exit
Exits a thread and sets the return value.
Interface Definition
int HTL_thread_exit(void *thread_return);
Description
HTL_thread_exit() is used to exit a thread that is being executed and return a value through thread_return.
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
thread_return |
void * |
Return value of thread execution. |
Output |
Return Value
- HTL_THREAD_SUCCESS: success.
- Other values: failure. For details, see the error code descriptions.
Example
void * ret; HTL_thread_exit(&ret);
Parent topic: Thread Functions