SetGroupName

Function

Sets the communicator of a communication task.

Prototype

1
uint32_t SetGroupName(const std::string &groupName)

Parameters

Table 1 Parameters

Parameter

Input/Output

Description

groupName

Input

Communicator where the current communication task is located. The value is of the string type and can contain a maximum of 128 bytes.

Returns

  • 0: Setting succeeded.
  • Other values: Setting failed.

Restrictions

None

Example

For details about the calling example of this API, see Example.