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

Root header of the temporal-memory segment. More...

#include <TemporalMemory.h>

Public Attributes

uint64 size
 Total segment size in bytes.
uint32 cid
 Check/magic id validated on attach.
uint32 slotCount
 Total message slots allocated.
uint32 slotsInUse
 Slots currently holding live messages.
uint64 usage
 Bytes currently in use across all bins.
uint64 growStep
 Byte increment used when growing the segment.
uint64 maxSize
 Hard ceiling for segment growth in bytes.
uint64 createdTime
uint64 lastCheckTime
 Timestamp of the last expiry sweep.
uint64 checkTimeInterval
 Interval between expiry sweeps (µs).
uint16 binCount
 Number of block-size bins.
uint32 bitFieldSize

Detailed Description

Root header of the temporal-memory segment.

Followed in memory by the slot bitfield, slotCount SlotEntryStructs and the bins.

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

Definition at line 43 of file TemporalMemory.h.

Member Data Documentation

◆ binCount

uint16 cmlabs::TemporalMemoryStruct::binCount

Number of block-size bins.

Definition at line 54 of file TemporalMemory.h.

◆ bitFieldSize

uint32 cmlabs::TemporalMemoryStruct::bitFieldSize

Definition at line 55 of file TemporalMemory.h.

◆ checkTimeInterval

uint64 cmlabs::TemporalMemoryStruct::checkTimeInterval

Interval between expiry sweeps (µs).

Definition at line 53 of file TemporalMemory.h.

◆ cid

uint32 cmlabs::TemporalMemoryStruct::cid

Check/magic id validated on attach.

Definition at line 45 of file TemporalMemory.h.

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

◆ createdTime

uint64 cmlabs::TemporalMemoryStruct::createdTime

Definition at line 51 of file TemporalMemory.h.

◆ growStep

uint64 cmlabs::TemporalMemoryStruct::growStep

Byte increment used when growing the segment.

Definition at line 49 of file TemporalMemory.h.

◆ lastCheckTime

uint64 cmlabs::TemporalMemoryStruct::lastCheckTime

Timestamp of the last expiry sweep.

Definition at line 52 of file TemporalMemory.h.

◆ maxSize

uint64 cmlabs::TemporalMemoryStruct::maxSize

Hard ceiling for segment growth in bytes.

Definition at line 50 of file TemporalMemory.h.

◆ size

uint64 cmlabs::TemporalMemoryStruct::size

Total segment size in bytes.

Definition at line 44 of file TemporalMemory.h.

◆ slotCount

uint32 cmlabs::TemporalMemoryStruct::slotCount

Total message slots allocated.

Definition at line 46 of file TemporalMemory.h.

◆ slotsInUse

uint32 cmlabs::TemporalMemoryStruct::slotsInUse

Slots currently holding live messages.

Definition at line 47 of file TemporalMemory.h.

◆ usage

uint64 cmlabs::TemporalMemoryStruct::usage

Bytes currently in use across all bins.

Definition at line 48 of file TemporalMemory.h.


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