A recursive mutex operates on top of a non-recursive mutex. Therefore,
we can bypass the test for recursive.
The end result is simply that the compiler can inline the locking and
unlocking a little better inside the lock() and unlock() functions
Change-Id: Ic06d1344ccd411c22cbdef74536f3a4d368d75d7
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
}
bool success = true;
if (timeout == -1) {
- mutex.lock();
+ mutex.QBasicMutex::lock();
} else {
success = mutex.tryLock(timeout);
}
count--;
} else {
owner = 0;
- mutex.unlock();
+ mutex.QBasicMutex::unlock();
}
}