Windows apps
Collapse the table of content
Expand the table of content
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::consume_message Method

When overridden in a derived class, consumes a message that was previously reserved.

virtual message<_Target_type> * consume_message(
   runtime_object_identity _MsgId
) = 0;


The runtime_object_identity of the message object being consumed.

A pointer to the message that the caller now has ownership of.

Similar to accept, but is always preceded by a call to reserve.

Header: agents.h

Namespace: Concurrency

© 2018 Microsoft