the Message class. This object provides threadsafe message-based IPC services based on exchange of objects containing a data pointer and minimal application-defined metadata. Messages are to be allocated/produced by the sender, and deallocated/consumed by the receiver.
More...
#include <message.h>
the Message class. This object provides threadsafe message-based IPC services based on exchange of objects containing a data pointer and minimal application-defined metadata. Messages are to be allocated/produced by the sender, and deallocated/consumed by the receiver.
- Examples:
- lab8_messages/main.cpp.
Definition at line 97 of file message.h.
◆ GetCode()
uint16_t Mark3::Message::GetCode |
( |
| ) |
|
|
inline |
GetCode Return the code set in the message upon receipt.
- Returns
- user code set in the object
Definition at line 139 of file message.h.
◆ GetData()
void* Mark3::Message::GetData |
( |
| ) |
|
|
inline |
GetData Get the data pointer stored in the message upon receipt.
- Returns
- Pointer to the data set in the message object
Definition at line 125 of file message.h.
◆ Init()
void Mark3::Message::Init |
( |
void |
| ) |
|
|
inline |
Init Initialize the data and code in the message.
Definition at line 105 of file message.h.
◆ operator new()
void* Mark3::Message::operator new |
( |
size_t |
sz, |
|
|
void * |
pv |
|
) |
| |
|
inline |
◆ SetCode()
void Mark3::Message::SetCode |
( |
uint16_t |
u16Code_ | ) |
|
|
inline |
SetCode Set the code in the message before transmission.
- Parameters
-
u16Code_ | Data code to set in the object |
- Examples:
- lab8_messages/main.cpp.
Definition at line 132 of file message.h.
◆ SetData()
void Mark3::Message::SetData |
( |
void * |
pvData_ | ) |
|
|
inline |
SetData Set the data pointer for the message before transmission.
- Parameters
-
pvData_ | Pointer to the data object to send in the message |
Definition at line 118 of file message.h.
◆ m_pvData
void* Mark3::Message::m_pvData |
|
private |
Pointer to the message data.
Definition at line 143 of file message.h.
◆ m_u16Code
uint16_t Mark3::Message::m_u16Code |
|
private |
The documentation for this class was generated from the following file:
- /mnt/c/Users/moslevin/m3-repo2/kernel/src/public/message.h