Udostępnij za pośrednictwem


choice::accept Method

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

virtual message<size_t> * accept(
   runtime_object_identity _MsgId,
   ITarget<size_t> * _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

choice Class