Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  master (77e7e51e)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
Gaudi::Utils::begin
AttribStringParser::Iterator begin(const AttribStringParser &parser)
Definition: AttribStringParser.h:136
std::forward
T forward(T... args)
gaudirun.args
args
Definition: gaudirun.py:336
IOTest.end
end
Definition: IOTest.py:125
Gaudi::cxx::with_lock
auto with_lock(Fun &&f)
Definition: SynchronizedValue.h:97