> // pass on function pointer along with this reference to boost
> thread
> boost::thread th0( fptr, this);
> // assign temp thread to local variable
> mThread = &th0;
> }
and now your th0 is destroyed leaving invalid pointer. Strange, I thought
gcc has already learned to warn about such stuff, but I don't get any
warning with gcc 4.3.2 here even with -Wall
> mCond.wait(lock); //<< DEAD LOCK
It's not a dead lock, don't swear with so scary words ;). If you'd debug
the program, you see you are still having only one thread by the time.
-- Slava
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users