Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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(
   _Inout_ 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

Show:
© 2015 Microsoft