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

Have a function for testing if a recursive mutex is locked by the current thread

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.2.2
    • Core: Threads
    • None

    Description

      It would be useful if QMutex had a function for testing if it is already locked by the current thread, this could be useful for writing/revisiting complex classes.

      Implementation could do something like

      return (d->owner != 0 && d->owner == d->self());

      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:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes