MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / make_timer

Function make_timer

include/concurrencpp/timers/timer_queue.h:93–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91
92 template<class callable_type, class... argumet_types>
93 timer make_timer(std::chrono::milliseconds due_time,
94 std::chrono::milliseconds frequency,
95 std::shared_ptr<concurrencpp::executor> executor,
96 callable_type&& callable,
97 argumet_types&&... arguments) {
98 if (!static_cast<bool>(executor)) {
99 throw std::invalid_argument(details::consts::k_timer_queue_make_timer_executor_null_err_msg);
100 }
101
102 return make_timer_impl(due_time.count(),
103 frequency.count(),
104 std::move(executor),
105 false,
106 details::bind(std::forward<callable_type>(callable), std::forward<argumet_types>(arguments)...));
107 }
108
109 template<class callable_type, class... argumet_types>
110 timer make_one_shot_timer(std::chrono::milliseconds due_time,

Callers

nothing calls this directly

Calls 2

make_timer_implFunction · 0.85
bindFunction · 0.85

Tested by

no test coverage detected