Help Center/ Atlas 300 Application (Model 3000)/ Matrix API Reference/ Auxiliary APIs/ Data Receiving APIs (C++ Language)/ Obtaining the Current Queue Size of a Specified Port of the Engine
Updated on 2022-03-13 GMT+08:00

Obtaining the Current Queue Size of a Specified Port of the Engine

Obtains the queue size of a specified port of the engine. This API is defined in engine.h.

Syntax

const uint32_t Engine::GetQueueCurrentSize(const uint32_t portID);

Parameter Description

Parameter

Description

Value Range

portID

Port ID

-

Return Value

Queue size corresponding to the port ID of the engine

Calling Example

uint32_t engineID= 1000;
uint32_t portID = 0;
auto graphPtr = Graph::GetInstance(100);
auto enginePtr = graphPtr->GetEngine(engineID);
auto engineQueueSize = enginePtr->GetQueueCurrentSize(portID);