MySQL 8.0.39
Source Code Documentation
net::io_context::timer_queue< Timer > Class Template Reference
Inheritance diagram for net::io_context::timer_queue< Timer >:
[legend]

Classes

class  pending_timer
 
class  pending_timer_op
 

Public Types

using key_type = timer_queue
 

Public Member Functions

 timer_queue (execution_context &ctx)
 
void shutdown () noexcept override
 
io_contextcontext () noexcept
 
template<class Op >
void push (const Timer &timer, Op &&op)
 
std::chrono::milliseconds next () const override
 
bool run_one () override
 
size_t cancel (const Timer &t)
 

Public Attributes

std::list< std::unique_ptr< pending_timer > > cancelled_timers_
 
std::multimap< typename Timer::time_point, typename Timer::Id * > pending_timer_expiries_
 
std::multimap< typename Timer::Id *, std::unique_ptr< pending_timer > > pending_timers_
 

Additional Inherited Members

- Protected Member Functions inherited from net::io_context::timer_queue_base
 timer_queue_base (execution_context &ctx)
 
- Protected Member Functions inherited from net::execution_context::service
 service (execution_context &owner)
 
 service (const service &)=delete
 
serviceoperator= (const service &)=delete
 
virtual ~service ()=default
 
execution_contextcontext () noexcept
 
- Protected Attributes inherited from net::io_context::timer_queue_base
std::mutex queue_mtx_
 

Member Typedef Documentation

◆ key_type

template<class Timer >
using net::io_context::timer_queue< Timer >::key_type = timer_queue

Constructor & Destructor Documentation

◆ timer_queue()

template<class Timer >
net::io_context::timer_queue< Timer >::timer_queue ( execution_context ctx)
inlineexplicit

Member Function Documentation

◆ cancel()

template<class Timer >
size_t net::io_context::timer_queue< Timer >::cancel ( const Timer &  t)
inline

◆ context()

template<class Timer >
io_context & net::io_context::timer_queue< Timer >::context ( )
inlinenoexcept

◆ next()

template<class Timer >
std::chrono::milliseconds net::io_context::timer_queue< Timer >::next ( ) const
inlineoverridevirtual

◆ push()

template<class Timer >
template<class Op >
void net::io_context::timer_queue< Timer >::push ( const Timer &  timer,
Op &&  op 
)
inline

◆ run_one()

template<class Timer >
bool net::io_context::timer_queue< Timer >::run_one ( )
inlineoverridevirtual

◆ shutdown()

template<class Timer >
void net::io_context::timer_queue< Timer >::shutdown ( )
inlineoverridevirtualnoexcept

Member Data Documentation

◆ cancelled_timers_

template<class Timer >
std::list<std::unique_ptr<pending_timer> > net::io_context::timer_queue< Timer >::cancelled_timers_

◆ pending_timer_expiries_

template<class Timer >
std::multimap<typename Timer::time_point, typename Timer::Id *> net::io_context::timer_queue< Timer >::pending_timer_expiries_

◆ pending_timers_

template<class Timer >
std::multimap<typename Timer::Id *, std::unique_ptr<pending_timer> > net::io_context::timer_queue< Timer >::pending_timers_

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