$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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
object using
new 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.