$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.