---
title: HTL_thread_join_np
description: "阻塞等待线程结束。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2300/accel/kunpengaccel_ksl_16_0088.html
sourcePath: /source/zh/kunpengboostkithistory/2300/accel/kunpengaccel_ksl_16_0088.html
indexId: ab784146a5998fed91a2c9a7475cf4e04fefdcbcca83cb994332e4ab0d4e87c374
---
# HTL_thread_join_np

阻塞等待线程结束。

#### 接口定义

int HTL_thread_join_np(HTL_thread_t *thread);


#### 描述

HTL_thread_join_np()用于等待线程thread终止。


#### 参数

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


#### 返回值

- HTL_THREAD_SUCCESS：成功。
- 其他：失败。见错误码定义。


#### 示例

```
/* join the thread */
HTL_thread_join_np(&thread);
```
