---
title: HTL_thread_pool_free
description: "释放线程池。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengaccel/system-lib/htl/kunpengaccel_ksl_16_0081.html
sourcePath: /source/zh/kunpengaccel/system-lib/htl/kunpengaccel_ksl_16_0081.html
indexId: 98e32062c4f9f844682e3500c1bb5afa3e36fe835874bbe491a66a4ac488985868
---
# 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);
```
