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

Per-signal bookkeeping for PsySpace signal distribution. More...

#include <PsySpace.h>

Collaboration diagram for cmlabs::SignalStruct:
[legend]

Public Attributes

DataMessagelastSignalMsg
 Most recently emitted message for this signal type (owned by the space).
utils::Event event
 Signalled whenever a new message arrives; wakes waiters.
utils::Mutex mutex
 Protects lastSignalMsg.

Detailed Description

Per-signal bookkeeping for PsySpace signal distribution.

One SignalStruct exists per signal PsyType that has listeners in this space. Holds the most recent signal message plus the event/mutex pair used to wake waiters in PsySpace::waitForSignal().

Definition at line 130 of file PsySpace.h.

Member Data Documentation

◆ event

utils::Event cmlabs::SignalStruct::event

Signalled whenever a new message arrives; wakes waiters.

Definition at line 132 of file PsySpace.h.

Referenced by cmlabs::PsySpace::emitSignal(), and cmlabs::PsySpace::waitForSignal().

◆ lastSignalMsg

DataMessage* cmlabs::SignalStruct::lastSignalMsg

Most recently emitted message for this signal type (owned by the space).

Definition at line 131 of file PsySpace.h.

Referenced by cmlabs::PsySpace::emitSignal(), and cmlabs::PsySpace::waitForSignal().

◆ mutex

utils::Mutex cmlabs::SignalStruct::mutex

Protects lastSignalMsg.

Definition at line 133 of file PsySpace.h.

Referenced by cmlabs::PsySpace::emitSignal(), and cmlabs::PsySpace::waitForSignal().


The documentation for this struct was generated from the following file:
  • /home/ubuntu/c/partner/psyclone2/CMSDK/include/PsySpace.h