---
title: HTL_thread_pool_free
description: "释放线程池。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/240RC1/accel/kunpengaccel_ksl_16_0081.html
sourcePath: /source/zh/kunpengboostkithistory/240RC1/accel/kunpengaccel_ksl_16_0081.html
indexId: afe45e07e3c8a6749a6bbc92256d7d6cb77ddbebe65d94aaeaf7ca46007cee4d76
---
# HTL_thread_pool_free

释放线程池。

#### 接口定义

int HTL_thread_pool_free(HTL_thread_pool_t *thread_pool);


#### 描述

HTL_thread_pool_free()释放线程池资源并将thread_pool设置为HTL_THREAD_POOL_NULL。


#### 参数

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


#### 返回值

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


#### 示例

```
ret = HTL_thread_pool_free(&pool);
```
