Aracılığıyla paylaş


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
);

Parameters

  • _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.

Return Value

true if the message was accepted, false otherwise.

Remarks

For more information, see Message Passing Functions.

Requirements

Header: agents.h

Namespace: Concurrency

See Also

Reference

Concurrency Namespace

receive Function

try_receive Function

asend Function