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

PushData

Inserts data into a specified queue.

Syntax

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

Parameter Description

Parameter

Description

Value Range

qIndex

Queue ID

0 to queNum – 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 full).