MySQL 8.0.39
Source Code Documentation
net::basic_waitable_timer< Clock, WaitTraits > Class Template Reference

#include <timer.h>

Classes

struct  Id
 

Public Types

using executor_type = io_context::executor_type
 
using clock_type = Clock
 
using duration = typename clock_type::duration
 
using time_point = typename clock_type::time_point
 
using traits_type = WaitTraits
 

Public Member Functions

 basic_waitable_timer (io_context &io_ctx)
 
 basic_waitable_timer (io_context &io_ctx, const time_point &tp)
 
 basic_waitable_timer (io_context &io_ctx, const duration &d)
 
 basic_waitable_timer (const basic_waitable_timer &)=delete
 
 basic_waitable_timer (basic_waitable_timer &&rhs)
 
 ~basic_waitable_timer ()
 
basic_waitable_timeroperator= (const basic_waitable_timer &)=delete
 
basic_waitable_timeroperator= (basic_waitable_timer &&rhs)
 
executor_type get_executor () noexcept
 
size_t cancel ()
 
size_t cancel_one ()
 
time_point expiry () const
 
size_t expires_at (const time_point &t)
 
size_t expires_after (const duration &d)
 
stdx::expected< void, std::error_code > wait ()
 
template<class CompletionToken >
auto async_wait (CompletionToken &&token)
 

Private Member Functions

Idid () const
 

Private Attributes

executor_type executor_
 
time_point expiry_
 
std::unique_ptr< Idid_ {new Id}
 

Friends

class io_context
 

Member Typedef Documentation

◆ clock_type

template<class Clock , class WaitTraits >
using net::basic_waitable_timer< Clock, WaitTraits >::clock_type = Clock

◆ duration

template<class Clock , class WaitTraits >
using net::basic_waitable_timer< Clock, WaitTraits >::duration = typename clock_type::duration

◆ executor_type

template<class Clock , class WaitTraits >
using net::basic_waitable_timer< Clock, WaitTraits >::executor_type = io_context::executor_type

◆ time_point

template<class Clock , class WaitTraits >
using net::basic_waitable_timer< Clock, WaitTraits >::time_point = typename clock_type::time_point

◆ traits_type

template<class Clock , class WaitTraits >
using net::basic_waitable_timer< Clock, WaitTraits >::traits_type = WaitTraits

Constructor & Destructor Documentation

◆ basic_waitable_timer() [1/5]

template<class Clock , class WaitTraits >
net::basic_waitable_timer< Clock, WaitTraits >::basic_waitable_timer ( io_context io_ctx)
inlineexplicit

◆ basic_waitable_timer() [2/5]

template<class Clock , class WaitTraits >
net::basic_waitable_timer< Clock, WaitTraits >::basic_waitable_timer ( io_context io_ctx,
const time_point tp 
)
inline

◆ basic_waitable_timer() [3/5]

template<class Clock , class WaitTraits >
net::basic_waitable_timer< Clock, WaitTraits >::basic_waitable_timer ( io_context io_ctx,
const duration d 
)
inline

◆ basic_waitable_timer() [4/5]

template<class Clock , class WaitTraits >
net::basic_waitable_timer< Clock, WaitTraits >::basic_waitable_timer ( const basic_waitable_timer< Clock, WaitTraits > &  )
delete

◆ basic_waitable_timer() [5/5]

template<class Clock , class WaitTraits >
net::basic_waitable_timer< Clock, WaitTraits >::basic_waitable_timer ( basic_waitable_timer< Clock, WaitTraits > &&  rhs)
inline

◆ ~basic_waitable_timer()

template<class Clock , class WaitTraits >
net::basic_waitable_timer< Clock, WaitTraits >::~basic_waitable_timer ( )
inline

Member Function Documentation

◆ async_wait()

template<class Clock , class WaitTraits >
template<class CompletionToken >
auto net::basic_waitable_timer< Clock, WaitTraits >::async_wait ( CompletionToken &&  token)
inline

◆ cancel()

template<class Clock , class WaitTraits >
size_t net::basic_waitable_timer< Clock, WaitTraits >::cancel ( )
inline

◆ cancel_one()

template<class Clock , class WaitTraits >
size_t net::basic_waitable_timer< Clock, WaitTraits >::cancel_one ( )
inline

◆ expires_after()

template<class Clock , class WaitTraits >
size_t net::basic_waitable_timer< Clock, WaitTraits >::expires_after ( const duration d)
inline

◆ expires_at()

template<class Clock , class WaitTraits >
size_t net::basic_waitable_timer< Clock, WaitTraits >::expires_at ( const time_point t)
inline

◆ expiry()

template<class Clock , class WaitTraits >
time_point net::basic_waitable_timer< Clock, WaitTraits >::expiry ( ) const
inline

◆ get_executor()

template<class Clock , class WaitTraits >
executor_type net::basic_waitable_timer< Clock, WaitTraits >::get_executor ( )
inlinenoexcept

◆ id()

template<class Clock , class WaitTraits >
Id * net::basic_waitable_timer< Clock, WaitTraits >::id ( ) const
inlineprivate

◆ operator=() [1/2]

template<class Clock , class WaitTraits >
basic_waitable_timer & net::basic_waitable_timer< Clock, WaitTraits >::operator= ( basic_waitable_timer< Clock, WaitTraits > &&  rhs)
inline

◆ operator=() [2/2]

template<class Clock , class WaitTraits >
basic_waitable_timer & net::basic_waitable_timer< Clock, WaitTraits >::operator= ( const basic_waitable_timer< Clock, WaitTraits > &  )
delete

◆ wait()

template<class Clock , class WaitTraits >
stdx::expected< void, std::error_code > net::basic_waitable_timer< Clock, WaitTraits >::wait ( )
inline

Friends And Related Function Documentation

◆ io_context

template<class Clock , class WaitTraits >
friend class io_context
friend

Member Data Documentation

◆ executor_

template<class Clock , class WaitTraits >
executor_type net::basic_waitable_timer< Clock, WaitTraits >::executor_
private

◆ expiry_

template<class Clock , class WaitTraits >
time_point net::basic_waitable_timer< Clock, WaitTraits >::expiry_
private

◆ id_

template<class Clock , class WaitTraits >
std::unique_ptr<Id> net::basic_waitable_timer< Clock, WaitTraits >::id_ {new Id}
private

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