Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
thread_util.h File Reference
#include <execution>
#include <future>
#include <mutex>
#include <numeric>
#include <thread>
#include <oneapi/tbb/parallel_for_each.h>
Include dependency graph for thread_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  hgps
 Top-level namespace for Health-GPS Console host application.
 
namespace  hgps::core
 Top-level namespace for Health-GPS Core C++ API.
 

Functions

template<class F , class... Ts>
auto hgps::core::run_async (F &&action, Ts &&...params)
 Run a given function asynchronous.
 
template<class Index , class UnaryFunction >
auto hgps::core::parallel_for (Index first, Index last, UnaryFunction func)
 Parallel for each over an indexed accessed containers.
 
template<class T , class UnaryPredicate >
auto hgps::core::find_index_of_all (const T &data, UnaryPredicate pred)
 Finds index of all occurrences in a container.