$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: William E. Kempf (wekempf_at_[hidden])
Date: 2003-06-30 09:20:54
Philippe A. Bouchard said:
> Hi there,
>
> I was wondering if you were planning to implement some static thread
> &
> thread::current() that returns the current thread id (& thread). That
> would be really useful.
Can't be done with the current non-copyable semantics. (BTW, I'm assuming
you know this functionality still exists, via the default c-tor.) The
next release is changing this, though. What I'm contemplating as the best
design is a thread::current() as you suggest, with the default c-tor
creating a "null" thread... but that will break existing code, so I have
to tread lightly here.
-- William E. Kempf