rby1-sdk
Loading...
Searching...
No Matches
rb::EventLoop Class Reference

Public Member Functions

 EventLoop (std::unique_ptr< Thread > thd)
 
template<typename F , typename... A, typename R = std::invoke_result_t<std::decay_t<F>, std::decay_t<A>...>>
DoTask (F &&task, A &&... args)
 
void Pause ()
 
void PurgeTasks ()
 
void PushCyclicTask (const std::function< void()> &cb, std::chrono::nanoseconds period, std::chrono::nanoseconds offset=std::chrono::nanoseconds{0})
 
template<typename F , typename... A>
void PushLoopTask (F &&task, A &&... args)
 
template<typename F , typename... A>
void PushTask (F &&task, A &&... args)
 
void Stop ()
 
template<typename F , typename... A, typename R = std::invoke_result_t<std::decay_t<F>, std::decay_t<A>...>>
std::future< R > Submit (F &&task, A &&... args)
 
void Unpause ()
 
void WaitForTasks () noexcept
 

The documentation for this class was generated from the following file: