$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-11-06 09:21:22
Torsten wrote:
> Hi,
>
> im trying to initiate a sub thread for checking some variables during
> the main program is running:
>
> ...do sth...
>
> boost::thread checkT(&check);
> checkT.join();
>
> ...do sth...
>
> As I understand boost::threads the second "do sth" should be
> performed during the thread is running. Well, it doesn't seem so.
checkT.join() blocks and waits for checkT to end.