Export (0) Print
Expand All

multitype_join::consume Method

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

virtual message<_Destination_type> * consume(
   runtime_object_identity _MsgId,
   _Inout_ ITarget<_Destination_type> * _PTarget
);

_MsgId

The runtime_object_identity of the reserved message object.

_PTarget

A pointer to the target block that is calling the consume method.

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

The consume method is similar to accept, but must always be preceded by a call to reserve that returned true.

Header: agents.h

Namespace: concurrency

Show:
© 2014 Microsoft