Boost logo

Boost Users :

Subject: Re: [Boost-users] Automatic thread join
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2010-01-08 08:44:27


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 08 January 2010, Lloyd wrote:
> Hi,
>
> Is there a way to join a thread automatically to the main thread when it
> finishes execution?

You can detach the thread. There's a member function, and it also happens
automatically when the boost::thread object is destroyed.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAktHNr0ACgkQ5vihyNWuA4Uh4wCfYk7eM0DRF/vBdEv+MwBJpxXC
ULcAnib9tPNi42/A98gQVpA1nyVo5jPo
=8cyw
-----END PGP SIGNATURE-----


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