
6 Nov
2006
6 Nov
'06
2:21 p.m.
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.