commit | ccba488d11e373078aba7b086e3824417b31f67e | [log] [tgz] |
---|---|---|
author | Chris Dickens <christopher.a.dickens@gmail.com> | Thu Aug 27 13:54:21 2020 -0700 |
committer | Chris Dickens <christopher.a.dickens@gmail.com> | Sun Sep 13 00:09:31 2020 -0700 |
tree | d8fd4624c9e8b67462ec948f0f0ebd7d0320e08b | |
parent | c3e292c57a42d16b3451eb6265cae2f1f8123a48 [diff] |
threads_posix: Use monotonic clock for condition variables where possible The pthread_condattr_setclock() function allows one to specify that the condition variable use CLOCK_MONOTONIC as the base for timed waits. This is desirable to avoid premature timeouts if the system time is adjusted while a timed wait is occurring. Add a check for the availability of this function and use it where possible. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>