Dev Essential  1.6.3
Loading...
Searching...
No Matches
timer_impl.h
Go to the documentation of this file.
1
14
15#ifndef A_UTIL_UTIL_SYSTEM_DETAIL_TIMER_IMPL_INCLUDED
16#define A_UTIL_UTIL_SYSTEM_DETAIL_TIMER_IMPL_INCLUDED
17
20
21namespace a_util {
22namespace system {
23template <typename M, typename T>
24inline Timer::Timer(std::uint64_t period_us, M method, T& instance)
25 : Timer() // necessary to prevent incomplete type error in IntrusivePtr<>
26{
27 setPeriod(period_us);
28 setCallback(method, instance);
29}
30
31template <typename M, typename T>
32inline void Timer::setCallback(M method, T& instance)
33{
35}
36
37} // namespace system
38} // namespace a_util
39
40#endif // A_UTIL_UTIL_SYSTEM_DETAIL_TIMER_IMPL_INCLUDED
Definition delegate_decl.h:129
Timer()
Default CTOR.
void setCallback(void(*function)())
void setPeriod(std::uint64_t period_us)
Serves as component for portable OS (Windows, Linux, ...) functionality.
Definition system.h:20
Serves as the root component, with common functionality documented in core functionality.
Definition base.h:24