Details
-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.2.2
-
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());