QMutex: improve codegen for non-futex lockInternal()
Amends commit ff9da1db0b0963f967f45ab430ec40a3051b70b4. QDeadlineTimer's Forever constructor is constexpr inline, while the one taking an integer is neither. In an LTO build, the compiler might have realized that it's constant, but let's be sure. Pick-to: 6.8 6.9 Change-Id: I2c07caec660e05efe695fffd6ac8ec3120258a96 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
1957597aa6
commit
ef73a5f175
@ -654,7 +654,7 @@ void QBasicMutex::lockInternal() noexcept(FutexAlwaysAvailable)
|
||||
}
|
||||
Q_ASSERT(d_ptr.loadRelaxed());
|
||||
} else {
|
||||
lockInternal(-1);
|
||||
lockInternal(QDeadlineTimer::Forever);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user