Udostępnij za pośrednictwem


propagator_block::send Method

Synchronously initiates a message to this block. Called by an ISource block. When this function completes, the message will already have propagated into the block.

virtual message_status send(
   message<_Source_type> * _PMessage,
   ISource<_Source_type> * _PSource
);

Parameters

  • _PMessage
    A pointer to the message object.

  • _PSource
    A pointer to the source block offering the message.

Return Value

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

Remarks

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

Requirements

Header: agents.h

Namespace: Concurrency

See Also

Reference

propagator_block Class