Condividi tramite


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;

Parameters

  • _MsgId
    The runtime_object_identity of the message object being consumed.

Return Value

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

Remarks

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

Requirements

Header: agents.h

Namespace: concurrency

See Also

Reference

source_block Class