Boost logo

Boost :

From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2007-11-14 05:59:09

"Preston A. Elder" <prez_at_[hidden]> writes:

> On Wed, 14 Nov 2007 03:22:29 +0000, Preston A. Elder wrote:
>> So, is it possible to get this fixed? :)
> Last email for today (I'm going to bed :P)
> if (!thread_ptr || *thread_ptr != boost::thread())
> return false;
> The above code does not work anymore. At least, my app stopped working
> because of the above code. I had to change it to:
> if (!thread_ptr || thread_ptr->get_id() != boost::this_thread::get_id())
> return false;
> But a lot of code will have been written for the former ;)
> My tests are on the pthreads implementation.

Aha. This is a breaking change. A default-constructed boost::thread used to
refer to the current thread. Now it refers to "not any thread", so it always
compares not equal to any running thread.


Anthony Williams
Just Software Solutions Ltd -
Registered in England, Company Number 5478976.
Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL

Boost list run by bdawes at, gregod at, cpdaniel at, john at