Boost logo

Boost :

From: bill_kempf (williamkempf_at_[hidden])
Date: 2002-01-16 16:02:18


--- In boost_at_y..., "terekhov" <terekhov_at_d...> wrote:
> --- In boost_at_y..., "bill_kempf" <williamkempf_at_h...> wrote:
> [...]
> > > "Constructors
> > >
> > > thread();
> > >
> > > Effects: Constructs a thread object representing the current
> > thread
> > > of
> > > execution.
> > >
> > > Postcondition: *this is non-joinable.
> > >
> > > Danger: *this is valid only within the current thread"
> > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >
> > Ahh. Sorry, I forgot I specified this in the documentation.
This
> > may be an overspecification on my part and easily fixed. I
> probably
> > specified this to make the Win32 implementation as fast as
possible.
>
> Do you mean GetCurrentThread pseudo handle?

Yes, and I know the way to work around this. DuplicateHandle was
deemed expensive by several people in an early draft, so I removed
it. They had no evidence that it was expensive, nor do I believe it
really is, I just didn't care to fight the issue at the time.

Bill Kempf


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk