diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2023-04-17 16:48:51 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-05-11 12:31:56 -0700 |
commit | 34914099a1044beba7fdd1b71b079c4130ca0cd4 (patch) | |
tree | 1c91a83bf1f26f4186d2f77572c99a933e6b8fa7 /src/corelib/compat/removed_api.cpp | |
parent | 834c755977bbfe66e041aba6d2dfa69954eb3808 (diff) |
QReadWriteLock: remove the untimed tryLockForXxxx functions
They're unnecessary now because the timed function is fast enough.
Note: the default argument will move to the QDeadlineTimer functions
before the Qt 6.6 release.
Change-Id: I3d728c4197df49169066fffd1756ddc0e4f796d3
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/compat/removed_api.cpp')
-rw-r--r-- | src/corelib/compat/removed_api.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/corelib/compat/removed_api.cpp b/src/corelib/compat/removed_api.cpp index cd1c8691bf..b7c5ae8453 100644 --- a/src/corelib/compat/removed_api.cpp +++ b/src/corelib/compat/removed_api.cpp @@ -525,6 +525,17 @@ qsizetype QString::toUcs4_helper(const ushort *uc, qsizetype length, uint *out) } #if QT_CONFIG(thread) +#include "qreadwritelock.h" + +bool QReadWriteLock::tryLockForRead() +{ + return tryLockForRead(0); +} + +bool QReadWriteLock::tryLockForWrite() +{ + return tryLockForWrite(0); +} #include "qthreadpool.h" #include "private/qthreadpool_p.h" |