---
title: HTL_worker_associated_with_pool
description: "将工作单元与池关联。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengaccel/system-lib/htl/kunpengaccel_ksl_16_0082.html
sourcePath: /source/zh/kunpengaccel/system-lib/htl/kunpengaccel_ksl_16_0082.html
indexId: c2df1deb41ce6352eba565f1405e982ee2522e58c4bfd05fa4dc8b715e6d1d5368
---
# HTL_worker_associated_with_pool

将工作单元与池关联。

#### 接口定义

int HTL_worker_associated_with_pool(HTL_worker_t worker, HTL_thread_pool_t thread_pool);


#### 描述

HTL_worker_associated_with_pool()函数不执行任何操作。


#### 参数

| 参数名 | 类型 | 描述 | 输入/输出 |
| --- | --- | --- | --- |
| worker | HTL\_worker\_t | 工作单元句柄。 | 输入 |
| thread\_pool | HTL\_thread\_pool\_t | 线程池。 | 输入 |


#### 返回值

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