Dummy thread pool.
More...
#include <Pool.hpp>
Dummy thread pool.
Definition at line 465 of file Pool.hpp.
void SUNphi::ThreadPool::assertMasterOnly |
( |
const int & |
threadId | ) |
const |
|
inline |
Assert that only the master thread is accessing.
- Parameters
-
Definition at line 477 of file Pool.hpp.
void SUNphi::ThreadPool::assertPoolOnly |
( |
const int & |
threadId | ) |
const |
|
inline |
Assert that only the pool is accessing.
- Parameters
-
Definition at line 471 of file Pool.hpp.
template<typename Size , typename F >
void SUNphi::ThreadPool::loopSplit |
( |
const Size & |
beg, |
|
|
const Size & |
end, |
|
|
F |
f |
|
) |
| |
|
inline |
Perform a loop.
- Parameters
-
beg | Beginning of the loop |
end | End of the loop |
f | Function to be called, accepting two integers: the first is the thread id, which will always be 0, the second the loop argument |
Definition at line 538 of file Pool.hpp.
template<typename F >
void SUNphi::ThreadPool::workOn |
( |
F |
f | ) |
|
|
inline |
Gives to all threads some work to be done
The object f
must be callable, returning void and getting an integer as a parameter, representing the thread id
- Parameters
-
f | Function embedding the work |
Definition at line 530 of file Pool.hpp.
The documentation for this class was generated from the following file: