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

Index pools: fixed arrays of equal-size objects addressed by a masked key, with non-waiting (IndexPoolBase, IndexPool) and waiting (IndexPoolBaseW, IndexPoolW) variants. More...

#include "psdaq/service/fast_monotonic_clock.hh"
#include "psdaq/service/AlignmentAllocator.hh"
#include <cassert>
#include <cstddef>
#include <vector>
#include <mutex>
#include <condition_variable>
#include <chrono>
#include <atomic>
#include <cstdio>

Classes

class  Pds::Eb::IndexPoolBase
 Fixed array of a power-of-2 number of equal-size objects, addressed by a key masked to the array size, with a per-slot allocated flag and allocation counters. More...
 
class  Pds::Eb::IndexPoolW< T, L >
 Typed index pool over IndexPoolBaseW<L>, so allocate() waits for busy slots. More...
 

Namespaces

namespace  Pds
 Outer namespace of the HSD digitizer helpers.
 
namespace  Pds::Eb
 Namespace of the psdaq event-builder (eb) code.
 

Detailed Description

Index pools: fixed arrays of equal-size objects addressed by a masked key, with non-waiting (IndexPoolBase, IndexPool) and waiting (IndexPoolBaseW, IndexPoolW) variants.