|
Boost Users : |
Subject: Re: [Boost-users] Thread scope
From: Igor R (boost.lists_at_[hidden])
Date: 2008-12-18 09:29:20
> Hi,
> I've seen that when a newly created thread goes out of scope, it keeps
> running - this suggests to me that they are heap allocated, but can't
> find anywhere in the documentation that confirms this. Can someone
> confirm or deny this, and show me where in the docs it is if confirmed?
Destroying thread object does not kill the thread itself.
"When the boost::thread object that represents a thread of execution
is destroyed the thread becomes detached"
http://www.boost.org/doc/libs/1_37_0/doc/html/thread/thread_management.html#thread.thread_management.thread
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