lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Pds::Eb::IndexPoolW< T, L > Class Template Reference

Typed index pool over IndexPoolBaseW<L>, so allocate() waits for busy slots. More...

#include <IndexPool.hh>

Inherits Pds::Eb::IndexPool< T, IPB >.

Public Member Functions

 IndexPoolW (unsigned numberofObjects, size_t size=0)
 Construct the base pool with numberofObjects slots of sizeof(T) + size bytes.
 
 ~IndexPoolW ()
 Does nothing; empty body.
 
T * allocate (unsigned key)
 Return IndexPoolBaseW<L>::allocate(key), the waiting allocation, cast to T*.
 

Detailed Description

template<class T, class L = std::mutex>
class Pds::Eb::IndexPoolW< T, L >

Typed index pool over IndexPoolBaseW<L>, so allocate() waits for busy slots.

Constructor & Destructor Documentation

◆ IndexPoolW()

template<class T , class L = std::mutex>
Pds::Eb::IndexPoolW< T, L >::IndexPoolW ( unsigned  numberofObjects,
size_t  size = 0 
)
inline

Construct the base pool with numberofObjects slots of sizeof(T) + size bytes.

◆ ~IndexPoolW()

template<class T , class L = std::mutex>
Pds::Eb::IndexPoolW< T, L >::~IndexPoolW ( )
inline

Does nothing; empty body.

Member Function Documentation

◆ allocate()

template<class T , class L = std::mutex>
T * Pds::Eb::IndexPoolW< T, L >::allocate ( unsigned  key)
inline

Return IndexPoolBaseW<L>::allocate(key), the waiting allocation, cast to T*.


The documentation for this class was generated from the following file: