cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
threadable_invoker.h File Reference

Definition of ThreadableInvoker class. More...

#include <cstdlib>
#include <exception>
#include <future>
#include <iostream>
#include <memory>
#include <thread>
#include <type_traits>
#include <utility>
#include <vector>
#include "stat_bench/clock/duration.h"
#include "stat_bench/clock/stop_watch.h"
#include "stat_bench/do_not_optimize.h"
#include "stat_bench/memory_barrier.h"
#include "stat_bench/stat_bench_exception.h"
#include "stat_bench/util/sync_barrier.h"
+ Include dependency graph for threadable_invoker.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  stat_bench::bench_impl::ThreadableInvoker
 Class to invoke functions measuring durations in threads if needed. More...
 

Namespaces

namespace  stat_bench
 Namespace of stat_bench source codes.
 
namespace  stat_bench::bench_impl
 Namespace of internal implementation.
 

Typedefs

template<typename Func, typename... Args>
using stat_bench::bench_impl::invoke_result_t = std::invoke_result_t<Func, Args...>
 Get the result type of invoking a function with arguments.
 

Functions

template<typename Func, typename... Args>
void stat_bench::bench_impl::invoke_and_ignore_return_value (const Func &func, Args &&... args)
 Invoke a function and ignore the return value.
 

Detailed Description

Definition of ThreadableInvoker class.

Definition in file threadable_invoker.h.