diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2013-07-10 09:52:39 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-07-10 20:06:26 +0200 |
commit | c64d602df3712c0d147b7b689d29f79c700e63bc (patch) | |
tree | 89c6ec8d240013e1d4777f8572b9f7b1e9e2165b /tests | |
parent | 6dec40628b48c673bff8d8fb341ddfdae9189f64 (diff) |
Accept defeat when select(2)ing without a monotonic clock
We prefer to use the monotonic clock because it's never affected by time
jumps (such as the user changing the date, or the system adjusting for
any other reasons, including automatic leap seconds). But if a system
doesn't have a monotonic clock, we simply accept the regular, real time
clock and hope it doesn't jump.
This is better than the current code that never restarts a call. The
side-effect is that a 30-second select may become a 3630-second select
if someone sets the clock back one hour.
Task-number: QTBUG-22301
Change-Id: Ia5a3bb453cd475f45b03637e2549165589fd2524
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions