From: JH (jupiter.hce_at_[hidden])
Date: 2019-09-02 01:06:22
Does io_service create threads for running timers? My application is
running a single thread, but if io_service creates multiple threads
for running timer, I must use the mutex or atomic lock.
On 9/1/19, JH <jupiter.hce_at_[hidden]> wrote:
> I use a single thread to run 3 classes using
> boost::asio::deadline_timer, the timers are managed by
> boost::asio::io_service. I deliberately use a single thread to avoid
> mutex, I believe those 3 timers are called exclusively by
> boost::asio::io_service in a single thread, there won't be race
> condition to share the objects among them, is it correct?
> Thank you.
> Kind regards,
> - jupiter
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk