21#include <tbb/spin_rw_mutex.h>
85 HiveNumbersMutex::scoped_lock lock(
m_genMutex );
86 status =
m_generator->shootArray( array, num, start );
const unsigned int m_buffer_size
double shoot()
Pop a new number from the buffer.
double operator()()
Operator () for the use within STL.
double pop()
Pop a new number from the buffer.
unsigned int m_buffer_index
virtual StatusCode finalize()
Finalization.
StatusCode shootArray(std::vector< double > &array, long num, long start=0)
Pop a new number from the buffer.
virtual StatusCode initialize(const SmartIF< IRndmGenSvc > &svc, const IRndmGen::Param &par)
Initialization.
IRndmGen * m_generator
Pointer to random number generator.
static HiveNumbersMutex m_genMutex
HiveNumbers()
Standard constructor.
std::vector< double > m_buffer
Definition of a interface for a generic random number generators.
Random Generator service interface definition Definition of a interface for a service to access rando...
Small smart pointer class with automatic reference counting for IInterface.
This class is used for returning status codes from appropriate routines.
constexpr static const auto FAILURE
tbb::spin_rw_mutex HiveNumbersMutex