$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [asio] io_service::run() never returns and is blocking my thread
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2009-08-27 16:07:51
Robert Dailey wrote:
> In other words, a call to join() on that thread hangs indefinitely
> until data is received. My completion callback is not executed at all
> until data arrives for reading.
>
> How can I force run() to return when I interrupt my thread?
>
Have you tried to close or cancel the serial port object? It should return
your waiting handlers with an "operation interrupted" error code.
Kind regards,
Rutger