100 void*
operator new(
size_t sz,
void* pv) {
return reinterpret_cast<Message*
>(pv); }
160 void*
operator new(
size_t sz,
void* pv) {
return (
MessagePool*)pv; }
178 void Push(
Message* pclMessage_);
247 Message* Receive(uint32_t u32TimeWaitMS_);
278 Message* Receive_i(uint32_t u32TimeWaitMS_);
The MessagePool Class The MessagePool class implements a simple allocator for message objects exchang...
Semaphore Blocking Object class declarations.
The TypedDoubleLinkList Class Doubly-linked-list data type, inherited from the base LinkList type...
Basic data type primatives used throughout the OS.
uint16_t GetCode()
GetCode Return the code set in the message upon receipt.
TypedDoubleLinkList< Message > m_clList
Linked list used to manage the Message objects.
Semaphore m_clSemaphore
Counting semaphore used to manage thread blocking.
the Semaphore class provides Binary & Counting semaphore objects, based on BlockingObject base class...
void Init()
Init Initialize the data and code in the message.
TypedDoubleLinkList< Message > m_clLinkList
List object used to store messages.
Mark3 Kernel Configuration This file is used to configure the kernel for your specific application in...
void SetCode(uint16_t u16Code_)
SetCode Set the code in the message before transmission.
void ClearNode()
ClearNode.
The MessageQueue class. Implements a mechanism used to send/receive data between threads. Allows threads to block, waiting for messages to be sent from other contexts.
uint16_t m_u16Code
Message code, providing context for the message.
void * GetData()
GetData Get the data pointer stored in the message upon receipt.
the Message class. This object provides threadsafe message-based IPC services based on exchange of ob...
void * m_pvData
Pointer to the message data.
The TypedLinkListNode class The TypedLinkListNode class provides a linked-list node type for a specif...
void SetData(void *pvData_)
SetData Set the data pointer for the message before transmission.
Core linked-list declarations, used by all kernel list types At the heart of RTOS data structures are...