CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmlabs::SlotEntryStruct Struct Reference

Per-message slot record: which bin/blocks hold the message and until when. More...

#include <TemporalMemory.h>

Public Attributes

uint16 serial
 Reuse serial; incremented when the slot is recycled and checked against the serial packed in the message id (wraps around).
uint64 eol
 Absolute end-of-life timestamp (µs); slot reclaimable after this.
uint32 bin
 Index of the bin holding the message data.
uint64 offset
 Byte offset of the message inside the bin's data area.
uint64 size
 Message byte size; 0 means the slot is not in use.
uint64 usage
 Bytes actually reserved (blocks used * blocksize >= size).
uint32 startBlock
 First block index used within the bin.
uint32 blockUsage
 Number of contiguous blocks used.

Detailed Description

Per-message slot record: which bin/blocks hold the message and until when.

Warning
Shared-memory layout; see MemoryManager.h for the ABI/rebuild warning.

Definition at line 28 of file TemporalMemory.h.

Member Data Documentation

◆ bin

uint32 cmlabs::SlotEntryStruct::bin

Index of the bin holding the message data.

Definition at line 31 of file TemporalMemory.h.

Referenced by cmlabs::TemporalMemory::insertMessage().

◆ blockUsage

uint32 cmlabs::SlotEntryStruct::blockUsage

Number of contiguous blocks used.

Definition at line 36 of file TemporalMemory.h.

Referenced by cmlabs::TemporalMemory::insertMessage().

◆ eol

uint64 cmlabs::SlotEntryStruct::eol

Absolute end-of-life timestamp (µs); slot reclaimable after this.

Definition at line 30 of file TemporalMemory.h.

Referenced by cmlabs::TemporalMemory::insertMessage().

◆ offset

uint64 cmlabs::SlotEntryStruct::offset

Byte offset of the message inside the bin's data area.

Definition at line 32 of file TemporalMemory.h.

Referenced by cmlabs::TemporalMemory::insertMessage().

◆ serial

uint16 cmlabs::SlotEntryStruct::serial

Reuse serial; incremented when the slot is recycled and checked against the serial packed in the message id (wraps around).

Definition at line 29 of file TemporalMemory.h.

Referenced by cmlabs::TemporalMemory::insertMessage().

◆ size

uint64 cmlabs::SlotEntryStruct::size

Message byte size; 0 means the slot is not in use.

Definition at line 33 of file TemporalMemory.h.

Referenced by cmlabs::TemporalMemory::insertMessage().

◆ startBlock

uint32 cmlabs::SlotEntryStruct::startBlock

First block index used within the bin.

Definition at line 35 of file TemporalMemory.h.

Referenced by cmlabs::TemporalMemory::insertMessage().

◆ usage

uint64 cmlabs::SlotEntryStruct::usage

Bytes actually reserved (blocks used * blocksize >= size).

Definition at line 34 of file TemporalMemory.h.

Referenced by cmlabs::TemporalMemory::insertMessage().


The documentation for this struct was generated from the following file: