JeVois  1.22
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
Loading...
Searching...
No Matches
Async.H File Reference
#include <future>
#include <vector>
#include <jevois/Util/details/AsyncImpl.H>
Include dependency graph for Async.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  jevois
 Main namespace for all JeVois classes and functions.
 

Functions

template<class Function , class... Args>
std::future< std::invoke_result_t< std::decay_t< Function >, std::decay_t< Args >... > > jevois::async (Function &&f, Args &&... args)
 Async execution using a thread pool.
 
template<class Function , class... Args>
std::future< std::invoke_result_t< std::decay_t< Function >, std::decay_t< Args >... > > jevois::async_little (Function &&f, Args &&... args)
 Async execution using a thread pool.
 
template<typename T >
std::vector< T > jevois::joinall (std::vector< std::future< T > > &fvec, bool multiline=true)
 Collect results from several async threads that are all returning a T result.
 
void jevois::joinall (std::vector< std::future< void > > &fvec, bool multiline=true)
 Collect results from several async threads that are all returning a T result.