Details
-
Bug
-
Resolution: Done
-
P4: Low
-
4.8.6
-
None
-
CentOS 64 bit
Description
QThread can't work after set the system time
if you set the system time(just time not date, set earlier) during calling QThread's function msleep or sleep;The function can't wake up as you want.
I found that it uses the realclock(gettimeofday) to implement sleep. It will Affects the
result if user set system time.
I think it needed to use clock_gettime(CLOCK_MONOTONIC, &timeout) instead.
You can check this problem in other version too.