Export (0) Print
Expand All
Expand Minimize

send Function

A synchronous send operation, which waits until the target either accepts or declines the message.

template <
   class _Type
>
bool send(
   ITarget<_Type> * _Trg,
   const _Type& _Data
);
template <
   class _Type
>
bool send(
   ITarget<_Type> &_Trg,
   const _Type &_Data
);

_Type

The payload type.

_Trg

A pointer or reference to the target to which data is sent.

_Data

A reference to the data to be sent.

true if the message was accepted, false otherwise.

For more information, see Message Passing Functions.

Header: agents.h

Namespace: Concurrency

Community Additions

ADD
Show:
© 2014 Microsoft