HTL_thread_equal
比较两个线程是否相等。
接口定义
int HTL_thread_equal(HTL_thread_t thread1, HTL_thread_t thread2, bool *result);
描述
HTL_thread_equal()用于比较两个线程句柄是否相等。比较两个工作单元句柄thread1和thread2是否相等,通过result返回比较结果。
参数
参数名  | 
类型  | 
描述  | 
输入/输出  | 
|---|---|---|---|
thread1  | 
HTL_thread_t  | 
线程1句柄地址。  | 
输入  | 
thread2  | 
HTL_thread_t  | 
线程2句柄地址。  | 
输入  | 
result  | 
bool *  | 
比较结果。 
  | 
输出  | 
返回值
- HTL_THREAD_SUCCESS:成功。
 - 其他:失败。见错误码定义。
 
示例
1 2 3 4 5  | int ret; bool is_same; HTL_thread_t thread1; HTL_thread_t thread2 ret = HTL_thread_equal(thread1, thread2, &is_same);  | 
父主题: 线程函数