|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
Files | |
| AlignmentAllocator.hh | |
| AlignmentAllocator, a standard-library allocator that returns N-byte aligned storage (adapted from a Stack Overflow answer, per the file comment). | |
| Collection.hh | |
| ZeroMQ helpers (context, message, socket), NIC address lookup, and CollectionApp, the base of processes that take part in the DAQ collection protocol. | |
| Dl.hh | |
| Dl, a small wrapper around dlopen(), dlsym() and dlclose(). | |
| EbDgram.hh | |
| PulseId, TimingHeader (the memory-mapped timing header at the start of DMA data) and EbDgram (a Dgram prefixed by the pulse ID word), all packed to 4-byte alignment. | |
| fast_monotonic_clock.hh | |
| fast_monotonic_clock, a std::chrono clock on CLOCK_MONOTONIC_COARSE (falling back to CLOCK_MONOTONIC); adapted from a Stack Overflow answer per the file comment. | |
| Fifo.hh | |
| Fifo, a fixed-size ring buffer, with a lock-guarded variant (FifoMT) and a variant whose readers can wait (FifoW). | |
| GenericPool.hh | |
| GenericPool, a Pool whose buffers come from one contiguous allocation and whose free list is a locked Queue. | |
| GenericPoolW.hh | |
| GenericPoolW, a GenericPool whose allocation waits for a free buffer instead of failing. | |
| Histogram.hh | |
| Histogram, a power-of-2 sized integer histogram with an overflow count. | |
| IpcUtils.hh | |
| POSIX shared-memory and message-queue helpers used between the DRP and its Python workers. | |
| Json2Xtc.hh | |
| Translation of configuration JSON (with :types: and :enum: descriptions) into XTC Names and data. | |
| kwargs.hh | |
| get_kwargs(), which parses a comma-separated key=value string into a map. | |
| LinkedList.hh | |
| ListBase and LinkedList: intrusive doubly linked lists where an object serves either as a list head or as an element. | |
| LinkedListSL.hh | |
| LinkedListSL, a doubly linked list element whose operations are guarded by a spin lock. | |
| Lock.hh | |
| Lock, an abstract lock built on a binary Semaphore with a cantLock() hook. | |
| MetricExporter.hh | |
| Prometheus monitoring helpers: exposer creation, a histogram type, and MetricExporter, a collectable that reads application counters on each scrape. | |
| Pool.hh | |
| Pool, the abstract base of fixed-size buffer pools, and the PoolDeclare macro that routes a class's new and delete through a pool. | |
| PoolEntry.hh | |
| PoolEntry, the header placed in front of every buffer handed out by a Pool. | |
| Queue.hh | |
| Entry, List and Queue: intrusive doubly linked lists whose list operations are guarded by a spin lock (the NL variants skip the lock). | |
| QueueSlowSafe.hh | |
| Includes QueueSlowSafeVx.hh when VXWORKS is defined, otherwise QueueSlowSafeUx.hh (QueueSS). | |
| QueueSlowSafeUx.hh | |
| QueueSS, a List-based queue whose operations hold a pthread mutex (the UNIX version of QueueSlowSafe). | |
| range.hh | |
| getRange(), which expands a list of numbers and number ranges into integers. | |
| Routine.hh | |
| Routine, the job interface queued to and run by a Task. | |
| Semaphore.hh | |
| Semaphore, a thin wrapper around an unnamed POSIX semaphore. | |
| SemLock.hh | |
| SemLock, a lock built on a Semaphore that starts empty. | |
| SpinLock.hh | |
| SpinLock, a busy-waiting lock on std::atomic_flag, usable with std::lock_guard. | |
| SysClk.hh | |
| SysClk, static helpers to sample a fast clock and compute time differences. | |
| Task.hh | |
| Task, a thread with a queue of Routine jobs, and its helpers. | |
| TaskObject.hh | |
| TaskObject, the thread parameters (name, priority, stack, attributes) of a Task. | |
| TaskWait.hh | |
| TaskWait, a Routine used to wait until a Task has processed everything queued before it. | |
| Timer.hh | |
| Timer, which calls expired() in a user Task after duration() milliseconds, once or repeatedly, and its UNIX service routine. | |