2 Sep
2019
2 Sep
'19
1:06 a.m.
Hi,
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
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