GetMultiResultWithUniqueId

Function Usage

Obtains the results (appsink) of multiple output elements on the stream. The blocking mode is used. Multi-thread concurrency and multi-output are supported by different uniqueIds. Use uniqueId to ensure that the result can be correctly obtained in multi-thread scenarios.

This API must be used together with SendMultiDataWithUniqueId. Otherwise, data stacking may occur.

Prototype

1
std::vector<MxstDataOutput*> MxStreamManager::GetMultiResultWithUniqueId(const std::string& streamName, uint64_t uniqueId, unsigned int timeOutInMs = DELAY_TIME);

Parameters

Parameter

Input/Output

Description

streamName

Input

Stream name.

uniqueId

Input

ID returned after data is sent (returned by the SendMultiDataWithUniqueId API). The corresponding result is obtained based on the ID.

timeOutInMs

Input

Maximum waiting time, in milliseconds. The default value is 3000 ms (3s).

Response Parameters

Data Structure

Description

std::vector<MxstDataOutput*>

Output data (MxstDataOutput) of the inference service. The memory needs to be deleted.