Lely core libraries 2.3.4
lely::io::UserTimer Class Reference

A user-defined timer. More...

#include <timer.hpp>

Inheritance diagram for lely::io::UserTimer:
Collaboration diagram for lely::io::UserTimer:

Public Member Functions

 UserTimer (io_ctx_t *ctx, ev_exec_t *exec, io_user_timer_setnext_t *func=nullptr, void *arg=nullptr)
 
 ~UserTimer ()
 
- Public Member Functions inherited from lely::io::TimerBase
Clock get_clock () const noexcept
 
int getoverrun (::std::error_code &ec) const noexcept
 
int getoverrun () const
 
::std::pair< duration, duration > gettime (::std::error_code &ec) const noexcept
 
::std::pair< duration, duration > gettime () const
 
::std::pair< duration, duration > settime (const duration &expiry, const duration &period, ::std::error_code &ec) noexcept
 
::std::pair< duration, duration > settime (const duration &expiry, const duration &period={})
 
::std::pair< duration, duration > settime (const time_point &expiry, const duration &period, ::std::error_code &ec) noexcept
 
::std::pair< duration, duration > settime (const time_point &expiry, const duration &period={})
 
void submit_wait (io_timer_wait &wait) noexcept
 
template<class F >
void submit_wait (ev_exec_t *exec, F &&f)
 
template<class F >
typename::std::enable_if<!::std::is_base_of< io_timer_wait, typename::std::decay< F >::type >::value >::type submit_wait (F &&f)
 
bool cancel_wait (struct io_timer_wait &wait) noexcept
 
bool abort_wait (struct io_timer_wait &wait) noexcept
 
ev::Future< int, int > async_wait (ev_exec_t *exec, struct io_timer_wait **pwait=nullptr)
 
ev::Future< int, int > async_wait (struct io_timer_wait **pwait=nullptr)
 
- Public Member Functions inherited from lely::io::Device
ContextBase get_ctx () const noexcept
 
ev::Executor get_executor () const noexcept
 
bool cancel (ev_task &task) noexcept
 
::std::size_t cancel_all () noexcept
 
bool abort (ev_task &task) noexcept
 
::std::size_t abort_all () noexcept
 

Detailed Description

A user-defined timer.

Definition at line 37 of file timer.hpp.

Constructor & Destructor Documentation

◆ UserTimer()

lely::io::UserTimer::UserTimer ( io_ctx_t ctx,
ev_exec_t exec,
io_user_timer_setnext_t func = nullptr,
void *  arg = nullptr 
)
inline
See also
io_user_timer_create()

Definition at line 40 of file timer.hpp.

◆ ~UserTimer()

lely::io::UserTimer::~UserTimer ( )
inline
See also
io_user_timer_destroy()

Definition at line 64 of file timer.hpp.


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