---
title: RegisterMultiFunc
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/dataflowdevg/udfrefc_23_00082.html
sourcePath: /source/zh/canncommercial/900/others/dataflowdevg/udfrefc_23_00082.html
indexId: c2f377ee4338fabbb64afa440983a5cda8e1b437de27711dddb29c930bb97cdf71
---
# RegisterMultiFunc

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | x |
| Atlas 推理系列产品 | x |
| Atlas 训练系列产品 | x |


#### 函数功能

注册多flow func。

不建议直接使用该函数，建议使用MetaMultiFunc注册函数宏来注册flow func。


#### 函数原型

- 注册普通flow func，即flow func输入为flowMsg时使用。
  1 bool RegisterMultiFunc(const char *flowFuncName, const MULTI_FUNC_CREATOR_FUNC &funcCreator) noexcept

- 注册流式输入（即函数入参为队列）flow func，即flow func输入为flowMsgQueue时使用。
  1 bool RegisterMultiFunc(const char *flowFuncName, const MULTI_FUNC_WITH_Q_CREATOR_FUNC &funcWithQCreator) noexcept


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| flowFuncName | 输入 | flow func的名称。不可以设置为NULL，必须以“\0”结尾。 |
| funcCreator/funcWithQCreator | 输入 | 多flow func的创建函数。 |


#### 返回值

- true
- false


#### 异常处理

无。


#### 约束说明

无。
