GetMultiResultWithUniqueIdSP
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.
Prototype
1 | std::vector<std::shared_ptr<MxstDataOutput>> MxStreamManager::GetMultiResultWithUniqueIdSP(const std::string& streamName, uint64_t uniqueId, uint32_t timeOutMs = DELAY_TIME); |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
streamName |
Input |
Stream name. |
uniqueId |
Input |
ID returned after data is sent (returned by the SendDataWithUniqueId API). The corresponding result is obtained based on the ID. |
timeOutMs |
Input |
Maximum waiting time, in milliseconds. The default value is 3000 ms (3s). |
Response Parameters
Data Structure |
Description |
|---|---|
std::vector<std::shared_ptr<MxstDataOutput>> |
Inference service output data. See MxstDataOutput. |
Parent topic: MxStreamManager