Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
We recommend using Visual Studio 2017

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;

_MsgId

The runtime_object_identity of the message object being reserved.

true if the message was successfully reserved, false otherwise.

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

Header: agents.h

Namespace: Concurrency

Community Additions

Show:
© 2018 Microsoft