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

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes