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

Fifo, a fixed-size ring buffer, with a lock-guarded variant (FifoMT) and a variant whose readers can wait (FifoW). More...

#include <atomic>
#include <vector>
#include <mutex>
#include <condition_variable>
#include <chrono>
#include "psdaq/service/SpinLock.hh"

Classes

class  Pds::Fifo< T >
 Fixed-size ring buffer of T, not thread-safe. More...
 

Namespaces

namespace  Pds
 Outer namespace of the HSD digitizer helpers.
 

Macros

#define LCK   std::lock_guard<L> lk(_lock)
 Declares a std::lock_guard on the member lock for the rest of the enclosing body; undefined after the member functions.
 

Detailed Description

Fifo, a fixed-size ring buffer, with a lock-guarded variant (FifoMT) and a variant whose readers can wait (FifoW).

Macro Definition Documentation

◆ LCK

#define LCK   std::lock_guard<L> lk(_lock)

Declares a std::lock_guard on the member lock for the rest of the enclosing body; undefined after the member functions.