
"Preston A. Elder" <prez@neuromancy.net> 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 -- Anthony Williams Just Software Solutions Ltd - http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL