Поделиться через


source_block::reserve_message Method

When overridden in a derived class, reserves a message previously offered by this source_block object.

virtual bool reserve_message(
   runtime_object_identity _MsgId
) = 0;

Parameters

  • _MsgId
    The runtime_object_identity of the message object being reserved.

Return Value

true if the message was successfully reserved, false otherwise.

Remarks

After reserve is called, if it returns true, either consume or release must be called to either take or release ownership of the message.

Requirements

Header: agents.h

Namespace: Concurrency

See Also

Reference

source_block Class