asio 0.1.5 | Main Page | Class Index | Member Index | Tutorial |
Inheritance diagram for basic_timer:
Public Types | |
typedef Service | service_type |
The type of the service that will be used to provide timer operations. | |
typedef service_type::impl_type | impl_type |
The native implementation type of the timer. | |
typedef service_type::demuxer_type | demuxer_type |
The demuxer type for this asynchronous type. | |
Public Member Functions | |
basic_timer (demuxer_type &d) | |
Constructor. | |
basic_timer (demuxer_type &d, from_type from_when, long seconds, long microseconds=0) | |
Constructor to set a particular expiry time. | |
~basic_timer () | |
Destructor. | |
demuxer_type & | demuxer () |
Get the demuxer associated with the asynchronous object. | |
impl_type | impl () |
Get the underlying implementation in the native type. | |
void | set (from_type from_when, long seconds, long microseconds=0) |
Set the timer. | |
void | expire () |
Expire the timer immediately. | |
void | wait () |
Perform a blocking wait on the timer. | |
template<typename Handler> void | async_wait (Handler handler) |
Start an asynchronous wait on the timer. | |
template<typename Handler, typename Completion_Context> void | async_wait (Handler handler, Completion_Context context) |
Start an asynchronous wait on the timer. | |
Private Attributes | |
service_type & | service_ |
The backend service implementation. | |
impl_type | impl_ |
The underlying native implementation. |
|
The type of the service that will be used to provide timer operations.
|
|
The native implementation type of the timer.
|
|
The demuxer type for this asynchronous type.
|
|
Constructor. This constructor creates a timer without setting an expiry time. The set() function must be called before the timer can be waited on.
|
|
Constructor to set a particular expiry time. This constructor creates a timer and sets the expiry time.
|
|
Destructor.
|
|
Get the demuxer associated with the asynchronous object. This function may be used to obtain the demuxer object that the timer uses to deliver completions for asynchronous operations.
|
|
Get the underlying implementation in the native type. This function may be used to obtain the underlying implementation of the timer. This is intended to allow access to native timer functionality that is not otherwise provided. |
|
Set the timer. This function sets the expiry time.
|
|
Expire the timer immediately. This function causes the timer to expire immediately. If there is a pending asynchronous wait operation against the timer it will be forced to complete. |
|
Perform a blocking wait on the timer. This function is used to wait for the timer to expire. This function blocks and does not return until the timer has expired. |
|
Start an asynchronous wait on the timer. This function may be used to initiate an asynchronous wait against the timer. It always returns immediately, but the specified handler will be notified when the timer expires.
|
|
Start an asynchronous wait on the timer. This function may be used to initiate an asynchronous wait against the timer. It always returns immediately, but the specified handler will be notified when the timer expires.
|
|
The backend service implementation.
|
|
The underlying native implementation.
|