We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

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