Boost logo

Boost Users :

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.


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