Boost logo

Boost Users :

Subject: [Boost-users] [asio] Thread safety
From: Laurent Fert (fert.laurent.boost_at_[hidden])
Date: 2009-06-30 23:58:14


Hi,

I have a thread that runs io_service::run().
I have another thread that creates a timer and schedules it to fire later.

Once the timer has been scheduled, the second thread forgets about it and
everything is handled by the thread that runs the service.
Is it safe to create/schedule a timer with an io_service from a thread while
this services is being run in another thread?

Thank you for your replies,

Laurent



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