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

One slot in the machine-global Psyclone instance index. More...

#include <MemoryManager.h>

Public Attributes

uint16 port
 TCP port the instance listens on; doubles as the instance key.
uint8 status
 One of the PSYCLONE_STATUS_* values.
uint64 heartbeat
 Last heartbeat timestamp (µs since epoch); staleness implies a dead instance.
uint64 instanceID
 Unique id of the owning instance, used to detect port reuse.

Detailed Description

One slot in the machine-global Psyclone instance index.

Warning
Shared-memory layout; see the file-level ABI warning before changing.

Definition at line 131 of file MemoryManager.h.

Member Data Documentation

◆ heartbeat

uint64 cmlabs::PsycloneIndexEntry::heartbeat

Last heartbeat timestamp (µs since epoch); staleness implies a dead instance.

Definition at line 134 of file MemoryManager.h.

Referenced by cmlabs::PsycloneIndex::GetStatus().

◆ instanceID

uint64 cmlabs::PsycloneIndexEntry::instanceID

Unique id of the owning instance, used to detect port reuse.

Definition at line 135 of file MemoryManager.h.

◆ port

uint16 cmlabs::PsycloneIndexEntry::port

TCP port the instance listens on; doubles as the instance key.

Definition at line 132 of file MemoryManager.h.

Referenced by cmlabs::PsycloneIndex::GetStatus(), and cmlabs::PsycloneIndex::init().

◆ status

uint8 cmlabs::PsycloneIndexEntry::status

One of the PSYCLONE_STATUS_* values.

Definition at line 133 of file MemoryManager.h.

Referenced by cmlabs::PsycloneIndex::GetStatus(), and cmlabs::PsycloneIndex::setStatus().


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