Bagikan melalui


unbounded_buffer::reserve_message Method

Reserves a message previously offered by this unbounded_buffer messaging block.

virtual bool reserve_message(
   runtime_object_identity _MsgId
);

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

unbounded_buffer Class