Dequeue

Applicability

Product

Supported

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product

x

Atlas training product

x

Function Description

Sets the balanced distribution affinity.

Prototype

1
virtual int32_t Dequeue(std::shared_ptr<FlowMsg> &flowMsg, int32_t timeout = -1) = 0

Parameters

Parameter

Input/Output

Description

flowMsg

Output

Dequeued FlowMsg.

timeout

Input

Dequeue timeout, in ms. The default value is -1, indicating that the current thread is blocked until an element can be obtained from the queue.

Returns

Exception Handling

None

Constraints

None