HTL_thread_getthreadid_np
获取当前线程的ID。
接口定义
int HTL_thread_getthreadid_np(void);
描述
HTL_thread_getthreadid_np()用于获取当前线程的ID。
参数
不涉及。
返回值
线程ID。
示例
1 2 | int id; id = HTL_thread_getthreadid_np(); |
父主题: 线程函数
获取当前线程的ID。
int HTL_thread_getthreadid_np(void);
HTL_thread_getthreadid_np()用于获取当前线程的ID。
不涉及。
线程ID。
1 2 | int id; id = HTL_thread_getthreadid_np(); |