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

Suggestion: add method for QReadWriteLock to check if unlock() will succeed and not cause error

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • Some future release
    • None
    • Core: Threads
    • None

      According to documentation, "Attempting to unlock a lock that is not locked is an error, and will result in program termination."

      It would be nice if the user could check if QReadWriteLock will succeed with the unlock() operation. Maybe a function like getState() which would return a (lockedForWrite,lockedForRad,unlocked) could be implemented.

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

            sorvig Morten Sørvig
            admin Administrator
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes