[PATCH] Use steady_clock to implement condition_variable::wait_for with predicate

Jonathan Wakely jwakely@redhat.com
Tue Sep 25 14:59:00 GMT 2018


On 12/09/18 15:35 +0100, Mike Crowe wrote:
>In r263225 (d2e378182a12d68fe5caeffae681252662a2fe7b), I fixed
>condition_variable::wait_for to use std::chrono::steady_clock for the wait.
>Unfortunately, I failed to spot that the same fix is required for the
>wait_for variant that takes a predicate too.

Thanks, I'm going to commit this slightly tweaked patch (keeping the
line shorter than 80 columns).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 1469 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180925/f93bf2e2/attachment.bin>


More information about the Gcc-patches mailing list