$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Problem with boost:thread
From: Igor R (boost.lists_at_[hidden])
Date: 2010-03-04 12:17:48
> Â Â Â Trash myTrash("hello");
> Â Â Â myTrash.start();
At this point your main thread *ends* and the program ends, so the 2nd
thread doesn't have an opportunity to do anything. That's why you need
to wait for the 2nd thread -- by means of join().