Windows Dev Center

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.

join::consume_message Method

Consumes a message previously offered by the join messaging block and reserved by the target, transferring ownership to the caller.

virtual message<_OutputType> * consume_message(
   runtime_object_identity _MsgId


The runtime_object_identity of the message object being consumed.

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

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

Header: agents.h

Namespace: concurrency

© 2015 Microsoft