Inconsistent (and wrong) output using boost::thread

Printable View