7#ifndef __LAUCHPARALLELTHREAD_H__
8#define __LAUCHPARALLELTHREAD_H__
15template<
typename T,
typename _Callable,
typename... _Args>
16void lauchParallelThread(
const std::vector<T> & listInputPTabModelFile,
long unsigned int nbThread, _Callable&& __f, _Args&&... __args);
18template<
typename T,
typename _Callable,
typename... _Args>
19void lauchParallelThread(std::vector<T> & listInputPTabModelFile,
long unsigned int nbThread, _Callable&& __f, _Args&&... __args);
21template<
typename _Callable,
typename... _Args>
23 const PPath & baseOutputName,
const PPath & fileSuffix,
24 long unsigned int nbThread, _Callable&& __f, _Args&&... __args);
26template<
typename _Callable,
typename... _Args>
28 const PPath & logFile,
29 long unsigned int nbThread, _Callable&& __f, _Args&&... __args);
31template<
typename _Callable,
typename... _Args>
33 long unsigned int nbThread, _Callable&& __f, _Args&&... __args);
35template<
typename _Callable,
typename... _Args>
37 long unsigned int nbThread, _Callable&& __f, _Args&&... __args);
void lauchParallelThread(const std::vector< T > &listInputPTabModelFile, long unsigned int nbThread, _Callable &&__f, _Args &&... __args)
Lauch the callable function __f on nbThread threads with __args to be passed to each thread.
bool lauchParallelThreadLog(const std::vector< PPath > &listInputPTabModelFile, const PPath &baseOutputName, const PPath &fileSuffix, long unsigned int nbThread, _Callable &&__f, _Args &&... __args)
Lauch the callable function __f on nbThread threads with __args to be passed to each thread.