Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-40949

QThread can't work after set the system time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • 5.0.0
    • 4.8.6
    • Core: Threads
    • None
    • CentOS 64 bit

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thiago Thiago Macieira
            xiaoluo Luoti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes