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

QThread can't work after set the system time

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.0.0
    • 4.8.6
    • Core: Threads
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: