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

Method timer_state

include/concurrencpp/timers/timer.h:94–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 public:
93 template<class given_callable_type>
94 timer_state(size_t due_time,
95 size_t frequency,
96 std::shared_ptr<concurrencpp::executor> executor,
97 std::weak_ptr<concurrencpp::timer_queue> timer_queue,
98 bool is_oneshot,
99 given_callable_type&& callable) :
100 timer_state_base(due_time, frequency, std::move(executor), std::move(timer_queue), is_oneshot),
101 m_callable(std::forward<given_callable_type>(callable)) {}
102
103 void execute() override {
104 if (cancelled()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected