Share via


multitype_join::accept Method

Accepts a message that was offered by this multitype_join block, transferring ownership to the caller.

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

Parameters

  • _MsgId
    The runtime_object_identity of the offered message object.

  • _PTarget
    A pointer to the target block that is calling the accept method.

Return Value

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

Requirements

Header: agents.h

Namespace: Concurrency

See Also

Reference

multitype_join Class