lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
psalg::shmem Namespace Reference

Shared-memory monitoring classes (XtcMonitorMsg, XtcMonitorServer, ShmemClient, ...). More...

Classes

class  ProcInfo
 Src subclass with process-id and IP-address accessors that are stubs in ProcInfo.cc (only the level is kept). More...
 
class  ShmemClient
 Client of the shared-memory monitor server: connect() finds the server for a tag, maps its shared memory read-only and opens the transition socket and event queues; get() returns the next datagram and free() hands its buffer back. More...
 
class  TransitionCache
 Tracks the transition buffers in shared memory: a stack of buffers holding the cached transitions of the current state, a list of free buffers, and a per-buffer bitmask of clients still using each buffer. More...
 
class  XtcMonitorMsg
 Record of four 32-bit words: a buffer index; a packed word with the number of buffers (bits 7:0), number of queues (bits 15:8) and return queue (bits 23:16); a size word (bits 27:0 used); and a reserved word. More...
 
class  XtcMonitorServer
 Serves datagrams to clients through shared memory: event buffer indexes go through POSIX message queues (serially or round-robin, see distribute()), transition buffer indexes through TCP sockets, and a TransitionCache keeps the transitions late clients need. More...
 

Detailed Description

Shared-memory monitoring classes (XtcMonitorMsg, XtcMonitorServer, ShmemClient, ...).