Boost logo

Boost Users :

Subject: [Boost-users] how to free thread object
From: davieyan (davieyan_at_[hidden])
Date: 2011-10-09 21:20:01


Hi,
  I write code to start a thread,but how to free this thread.
  code:

void helloworld()
{
  std::cout << "Hello World!" << std::endl;
}

int main()
{
  boost::thread thrd(&helloworld);
  thrd.join();
}

--
View this message in context: http://boost.2283326.n4.nabble.com/how-to-free-thread-object-tp3888900p3888900.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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