---
title: HTL_thread_pool_free
description: "释放线程池。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2300/accel/kunpengaccel_ksl_16_0081.html
sourcePath: /source/zh/kunpengboostkithistory/2300/accel/kunpengaccel_ksl_16_0081.html
indexId: 3fbebf17d0686c800e46acd8571578f58292864ea079f0bf8731ebbf2f26edf774
---
# 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);
```
