Boost logo

Boost :

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.

Thank you.

Kind regards,

- jupiter

On 9/1/19, JH <jupiter.hce_at_[hidden]> wrote:
> Hi,
> 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, gregod at, cpdaniel at, john at