This documentation is archived and is not being maintained.

ITarget::propagate Method

When overridden in a derived class, asynchronously passes a message from a source block to this target block.

virtual message_status propagate(
   message<_Type> * _PMessage,
   ISource<_Type> * _PSource
) = 0;

_PMessage

A pointer to the message object.

_PSource

A pointer to the source block offering the message.

A message_status indication of what the target decided to do with the message.

The method throws an invalid_argument exception if either the _PMessage or _PSource parameter is NULL.

Header: agents.h

Namespace: Concurrency

Show: