Freigeben über


single_assignment::reserve_message Method

Reserves a message previously offered by this single_assignment 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

single_assignment Class