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

Add QMutex APIs to completely unlock and relock a recursive mutex

XMLWordPrintable

      This would allow doing something like

      // in Thread A:
      int lockDepth = myMutex.unlockRecursive();
      mySemaphore.acquire(); // Wait for thread B to access threadA and to release the semaphore
      myMutex.lockRecursive(lockDepth);

      Since the thread A method called by thread B will lock and unlock the mutex as well it is required to completely unlock the mutex first, which right now is difficult to implement.

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

            bhughes Bradley T. Hughes (closed Nokia Identity) (Inactive)
            vhilshei Volker Hilsheimer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes