diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2024-11-02 10:28:12 -0700 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2024-11-03 15:18:37 -0700 |
| commit | 5d1eba05e54ad15b4f492e371e911908b1290f07 (patch) | |
| tree | 71474ba1466225775c9467c3a684fed4920d9bc2 /tests/auto/sql/kernel/qsqldatabase/tst_databases.h | |
| parent | db880ea6b2b6a5880e84cf362eefdc6b542d54f8 (diff) | |
QThread/Unix: use pthread_timedjoin() support if it's not worse
For some legacy reason at the time they were proposed, this extension
function is defined to operate on CLOCK_REALTIME, which is subject to
time jumps. I believe the proposal to POSIX is to implement the
clockjoin() function instead.
This commit implements support for using it if it won't make the
situation worse: that is, if QWaitCondition is already using the real-
time clock. This will enable support for Apple Darwin systems and for
QNX. The other BSDs are left out because they do have CLOCK_MONOTONIC
and pthread_condattr_setclock().
Change-Id: Ib97a7f1750cb4e3da5d1fffd68efdec02615b9ec
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/sql/kernel/qsqldatabase/tst_databases.h')
0 files changed, 0 insertions, 0 deletions
