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,
   _Inout_ 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