Default service implementation for a timer.
template< typename Clock, typename WaitTraits = asio::wait_traits<Clock>> class waitable_timer_service : public io_service::service
Name |
Description |
---|---|
The clock type. |
|
The duration type of the clock. |
|
The implementation type of the waitable timer. |
|
The time point type of the clock. |
|
The wait traits type. |
Name |
Description |
---|---|
Cancel any asynchronous wait operations associated with the timer. |
|
Cancels one asynchronous wait operation associated with the timer. |
|
Construct a new timer implementation. |
|
Destroy a timer implementation. |
|
Set the expiry time for the timer relative to now. |
|
(Deprecated: Use expiry().) Get the expiry time for the timer as an absolute time. Set the expiry time for the timer as an absolute time. |
|
(Deprecated: Use expiry().) Get the expiry time for the timer relative to now. (Deprecated: Use expires_after().) Set the expiry time for the timer relative to now. |
|
Get the expiry time for the timer as an absolute time. |
|
Get the io_service object that owns the service. |
|
Move-assign from another timer implementation. |
|
Move-construct a new timer implementation. |
|
Construct a new timer service for the specified io_service. |
Name |
Description |
---|---|
The unique service identifier. |
Header: asio/waitable_timer_service.hpp
Convenience header: asio.hpp