|
Boost : |
From: Rainer Deyke (root_at_[hidden])
Date: 2001-07-02 12:10:52
----- Original Message -----
From: "Peter Dimov" <pdimov_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Monday, July 02, 2001 10:20 AM
Subject: Re: [boost] Re: Boost.Threads - thread_desc concept
> A thread cannot run without its corresponding object that is hidden in the
> OS. However, a boost::thread DOES NOT represent the OS thread object. It
can
> never do that, since its lifetime is controlled by the user, not the OS.
That is one possible design, but it's not the only one. Another design is
to make the thread object reference counted, and let the thread itself own
one reference.
> In particular, you can create several boost::thread's that refer to the
same
> thread.
If that is true, it makes sense to call it "boost::thread::ref" and make it
copyable. This does not exclude the possibility of a reference counted
thread object as described above, either as part of the interface or as an
implementation detail.
-- Rainer Deyke (root_at_[hidden]) Shareware computer games - http://rainerdeyke.com "In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk