# HTL_thread_mach_thread_np

获取指定线程的ID。

#### 接口定义

int HTL_thread_mach_thread_np(HTL_thread_t thread);


#### 描述

HTL_thread_mach_thread_np()用于获取指定线程thread的ID。


#### 参数

| 参数名 | 类型 | 描述 | 输入/输出 |
| --- | --- | --- | --- |
| thread | HTL\_thread\_t | 线程句柄。 | 输入 |


#### 返回值

线程ID。


#### 示例

```
HTL_thread_t thread;
id = HTL_thread_mach_thread_np(thread);
```
