On 15 Sep 2014 at 20:27, Steven Clark wrote:
Last week when I casually looked through Boost documentation, it was not at all clear to me that chrono is newer and should be preferred in new code. This morning I made the straightforward transformation of my test program to use chrono and it works correctly on Linux 3.13.0 with Boost 1.54. I've not yet back-ported wait_until() to Boost 1.48 or 1.46 to see if it works on my other platforms. My time might be better spent updating those platforms to use the latest Boost.
chrono is what ended up in the C++ 11 STL. It is probably much better tested with the older xtime API pretty much deprecated. We probably should actually mark that older API with deprecation compiler warnings really ...
Would it be a good idea for me to morph my test program into a unit test and add it to the Boost:thread test suite? If so, would someone like to point me in the right direction and answer questions?
Please do and send it to me privately. I'll see if I can fix the bug next Saturday and I'll add any test case you supply to keep in sane into the future. Niall -- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/