+BOOST_AUTO_UNIT_TEST( thread_list )
+{
+ try
+ {
+ const int num_threads = 4;
+ std::list<boost::thread *> thread_list;
+
+ for (int i=0; i < num_threads; ++i)
+ {
+ worker w;
+ thread_list.push_back(new boost::thread(w));
+ }
+ std::list<boost::thread *>::iterator it;
+ for (it = thread_list.begin(); it != thread_list.end(); it++)
+ {
+ (*it)->join();
+ delete *it;
+ }