target_block::send_message Method

When overridden in a derived class, this method synchronously passes a message from an ISource block to this target_block object. It is invoked by the send method, when called by a source block.

virtual message_status send_message(
   message<_Source_type> *,
   ISource<_Source_type> *
);

Return Value

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

Remarks

By default, this block returns declined unless overridden by a derived class.

Requirements

Header: agents.h

Namespace: Concurrency

See Also

Reference

target_block Class