diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2023-04-17 16:49:58 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-05-11 12:31:56 -0700 |
commit | fcae43237b7501d9da1dc1b838bf4cdb28d3fd91 (patch) | |
tree | 1364665e94d292ca945a275d26dc9b67d0feaaca /src/corelib/compat | |
parent | 34914099a1044beba7fdd1b71b079c4130ca0cd4 (diff) |
QReadWriteLock: inline the lockForXxx functions
We can now do that because tryLockForXxxx(-1) is fast for the
uncontended case too.
Change-Id: I3d728c4197df49169066fffd1756ddd06caf7b52
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/compat')
-rw-r--r-- | src/corelib/compat/removed_api.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/compat/removed_api.cpp b/src/corelib/compat/removed_api.cpp index b7c5ae8453..d810da59e8 100644 --- a/src/corelib/compat/removed_api.cpp +++ b/src/corelib/compat/removed_api.cpp @@ -601,6 +601,10 @@ QStringView QXmlStreamAttributes::value(QLatin1StringView qualifiedName) const return value(QAnyStringView(qualifiedName)); } +// inlined API +#if QT_CONFIG(thread) +#include "qreadwritelock.h" +#endif // #include "qotherheader.h" // // implement removed functions from qotherheader.h |