Boost logo

Boost Users :

From: Alex Adranghi (mail_at_[hidden])
Date: 2008-08-30 08:15:54


>> I see the run() method running in a loop. Then how do I stop the
>> service from some other thread?.
>>
>> Any help would be greatly appreciated.
>
> Arrange for a way for another thread can call top() on the first
> thread's io_service object.
>

stop() sends a signal to end a threads execution of run(), so it's as
simple as another thread holding a reference to io_service and invoking
when required.


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