Updated on 2022-03-13 GMT+08:00

PopData

Reads the header data of a specified queue (deleting it from the queue).

Syntax

bool MultiTypeQueue::PopData(uint32_t qIndex, std::shared_ptr<void>& dataPtr);

Parameter Description

Parameter

Description

Value Range

qIndex

Queue ID

0 to que_num – 1

dataPtr

Pointer to the queue function

-

Return Value

If the operation is successful, true is returned. Otherwise, false is returned (for example, when the queue is empty).