Boost logo

Boost Users :

Subject: Re: [Boost-users] Why does `boost::asio::deadline_timer` allocate a `timer_queue` instance for each `deadline_timer` object?
From: Bjorn Reese (breese_at_[hidden])
Date: 2014-11-15 11:58:44


On 11/15/2014 04:24 PM, Wang Danqi wrote:

> There will be a single instance of `deadline_timer_service` serving
> many `deadline_timer` objects. An instance of
> `detail::deadline_timer_service` is created for each `deadline_timer`
> object.

All the deadline_timer objects obtain a pointer to the same
detail::deadline_time_service (via the basic_io_object constructor)
so there is at most one instance per io_service.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net