From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-08-22 08:05:45
From: "Alexander Terekhov" <terekhov_at_[hidden]>
> > How do I create a 'joinable' thread object representing the main thread?
> AFAICT you cannot. however, Bill can probably do it
> for you using some internal thread-safe singleton
> and public static thread& thread::main() method..
No, I don't need a reference to a singleton; I need to create this thread
since all other thread objects are created in the same manner. IOW my
thread::ref is a shared_ptr<thread> and I can't initialize a
shared_ptr<thread> given a thread&.
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk