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

An I/O system timer. More...

#include <timer.hpp>

Inheritance diagram for lely::io::Timer:
Collaboration diagram for lely::io::Timer:

Public Member Functions

 Timer (io_poll_t *poll, ev_exec_t *exec, clockid_t clockid)
 
 ~Timer ()
 
- 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, intasync_wait (ev_exec_t *exec, struct io_timer_wait **pwait=nullptr)
 
ev::Future< int, intasync_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

An I/O system timer.

Definition at line 36 of file timer.hpp.

Constructor & Destructor Documentation

◆ Timer()

lely::io::Timer::Timer ( io_poll_t poll,
ev_exec_t exec,
clockid_t  clockid 
)
inline
See also
io_timer_create()

Definition at line 39 of file timer.hpp.

◆ ~Timer()

lely::io::Timer::~Timer ( )
inline
See also
io_timer_destroy()

Definition at line 62 of file timer.hpp.


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