![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
The class enables to uses openMP to execute callables in parallel. More...
#include <agrum/base/core/threads/threadExecutorOMP.h>
The class enables to uses openMP to execute callables in parallel.
The threadsOMP::ThreadExecutor class is intended to easily parallelize algorithms by providing a simple interface to launch the threads. The class also catches exceptions raised by the threads, so that those do not terminate prematurely the program. It can then rethrow one such exception in a single-threaded manner, so that it can be caught by the main thread.