MeshLib C++ Docs
Loading...
Searching...
No Matches
MRParallelFor.h File Reference
#include "MRFunctional.h"
#include "MRParallel.h"
#include "MRProgressCallback.h"
#include "MRTbbThreadMutex.h"
#include "MRVector.h"
#include <atomic>

Go to the source code of this file.

Namespaces

namespace  MR
 only for bindings generation
 

Functions

MRMESH_API void MR::parallelFor (size_t begin, size_t end, FunctionRef< void(size_t)> f)
 
MRMESH_API void MR::parallelFor (size_t begin, size_t end, FunctionRef< void(size_t, void *)> f, FunctionRef< void *()> ctx)
 
MRMESH_API bool MR::parallelFor (size_t begin, size_t end, FunctionRef< void(size_t, void *)> f, FunctionRef< void *()> ctx, ProgressCallback cb, size_t reportProgressEvery=1024)
 
template<typename I , typename F , typename ... Cb>
auto MR::ParallelFor (I begin, I end, F &&f, Cb &&... cb)
 
template<typename I , typename L , typename F , typename ... Cb>
auto MR::ParallelFor (I begin, I end, tbb::enumerable_thread_specific< L > &e, F &&f, Cb &&... cb)
 
template<typename T , typename ... F>
auto MR::ParallelFor (const std::vector< T > &v, F &&... f)
 
template<typename T , typename I , typename ... F>
auto MR::ParallelFor (const Vector< T, I > &v, F &&... f)
 
template<typename T , typename I , typename ... F>
auto MR::ParallelFor (const Buffer< T, I > &buf, F &&... f)