message Class
The basic message envelope containing the data payload being passed between messaging blocks.
template<
class _Type
>
class message : public ::Concurrency::details::_Runtime_object;
Parameters
- _Type
The data type of the payload within the message.
Members
Public Typedefs
Name |
Description |
---|---|
type |
A type alias for _Type. |
Public Constructors
Name |
Description |
---|---|
Overloaded. Constructs a message object. |
|
Destroys the message object. |
Public Methods
Name |
Description |
---|---|
Adds to the reference count for the message object. Used for message blocks that need reference counting to determine message lifetimes. |
|
Returns the ID of the message object. |
|
Subtracts from the reference count for the message object. Used for message blocks that need reference counting to determine message lifetimes. |
Public Data Members
Name |
Description |
---|---|
The payload of the message object. |
Remarks
For more information, see Asynchronous Message Blocks.
Inheritance Hierarchy
message
Requirements
Header: agents.h
Namespace: concurrency