#include <mia/core/defines.hh>
#include <thread>
#include <atomic>
#include <mutex>
#include <cassert>
#include <vector>
Go to the source code of this file.
Data Structures | |
class | C1DParallelRange |
class | CMaxTasks |
class | ReduceValue< V > |
class | TScopedLock< Mutex > |
Macros | |
#define | ATOMIC std::atomic |
Typedefs | |
typedef std::mutex | CMutex |
typedef std::recursive_mutex | CRecursiveMutex |
typedef TScopedLock< CRecursiveMutex > | CRecursiveScopedLock |
typedef TScopedLock< CMutex > | CScopedLock |
Functions | |
template<typename Range , typename Func > | |
void | pfor (Range range, const Func &f) |
template<typename Range , typename Func > | |
void | pfor_callback (Range &range, Func f) |
template<typename Range , typename Value , typename Func , typename Reduce > | |
Value | preduce (Range range, Value identity, const Func &f, Reduce r) |
template<typename Range , typename Value , typename Func , typename Reduce > | |
void | preduce_callback (Range &range, ReduceValue< Value > &v, Func f, Reduce r) |
#define ATOMIC std::atomic |
Definition at line 46 of file parallelcxx11.hh.
typedef std::mutex CMutex |
Definition at line 34 of file parallelcxx11.hh.
typedef std::recursive_mutex CRecursiveMutex |
Definition at line 35 of file parallelcxx11.hh.
Definition at line 76 of file parallelcxx11.hh.
typedef TScopedLock<CMutex> CScopedLock |
Definition at line 75 of file parallelcxx11.hh.
void pfor | ( | Range | range, |
const Func & | f | ||
) |
Definition at line 145 of file parallelcxx11.hh.
References CMaxTasks::get_max_tasks().
Referenced by FDeformer3D::operator()().
void pfor_callback | ( | Range & | range, |
Func | f | ||
) |
Definition at line 133 of file parallelcxx11.hh.
Value preduce | ( | Range | range, |
Value | identity, | ||
const Func & | f, | ||
Reduce | r | ||
) |
Definition at line 204 of file parallelcxx11.hh.
References CMaxTasks::get_max_tasks(), ReduceValue< V >::get_reduced(), and NS_MIA_END.
void preduce_callback | ( | Range & | range, |
ReduceValue< Value > & | v, | ||
Func | f, | ||
Reduce | r | ||
) |
Definition at line 190 of file parallelcxx11.hh.
References ReduceValue< V >::get_identity(), and ReduceValue< V >::reduce().