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

QThread can't work after set the system time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 4.8.6
    • Fix Version/s: 5.0.0
    • Component/s: Core: Threads
    • Labels:
      None
    • Environment:
      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

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

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            xiaoluo Luoti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes