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

QWaitCondition blocks on unlocked mutex

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.1.0
    • 5.0.2
    • Core: Threads
    • None
    • Linux
    • ccb7db2ee35b8efb0030283856a9b9f5a1ff419d

    Description

      QMutex lockedMutex;
      QWaitCondition cond;
      cond.wait(&lockedMutex );
      

      blocks on Linux but the doc says:

       If lockedMutex is not in a locked state, this function returns immediately.
      

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            syntheticpp Peter Kümmel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes