The Gaudi Framework  v38r1p1 (ae26267b)
Gaudi::cxx Namespace Reference

Namespaces

 details
 

Classes

class  SynchronizedValue
 

Functions

template<typename Fun >
auto with_lock (Fun &&f)
 
template<typename ContainerOfSynced , typename Fun >
void for_each (ContainerOfSynced &c, Fun &&f)
 

Function Documentation

◆ for_each()

template<typename ContainerOfSynced , typename Fun >
void Gaudi::cxx::for_each ( ContainerOfSynced &  c,
Fun &&  f 
)

Definition at line 104 of file SynchronizedValue.h.

104  {
105  std::for_each( begin( c ), end( c ), with_lock( std::forward<Fun>( f ) ) );
106  }

◆ with_lock()

template<typename Fun >
auto Gaudi::cxx::with_lock ( Fun &&  f)

Definition at line 97 of file SynchronizedValue.h.

97  {
98  return [f = std::forward<Fun>( f )]( auto& p, auto&&... args ) -> decltype( auto ) {
99  return p.with_lock( f, std::forward<decltype( args )>( args )... );
100  };
101  }
std::for_each
T for_each(T... args)
gaudirun.c
c
Definition: gaudirun.py:525
std::forward
T forward(T... args)
CLHEP::begin
double * begin(CLHEP::HepVector &v)
Definition: TupleAlg.cpp:45
gaudirun.args
args
Definition: gaudirun.py:336
IOTest.end
end
Definition: IOTest.py:123
Gaudi::cxx::with_lock
auto with_lock(Fun &&f)
Definition: SynchronizedValue.h:97