diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2023-04-27 20:35:30 -0700 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-05-11 12:31:57 -0700 |
| commit | 63704529b75f831ffeb965765c10caf09f7883fe (patch) | |
| tree | dfa2a6933070fb559517158da6384a5ac2888e5f /src/corelib/thread/qmutex.cpp | |
| parent | fcae43237b7501d9da1dc1b838bf4cdb28d3fd91 (diff) | |
QReadWriteLock: add tryLockForXxx overloads taking QDeadlineTimer
This propagates inside the internals, ending up in wait_until calls in
the internal std::condition_variable. For systems with proper support
for monotonic waiting (Linux, FreeBSD), this should improve performance.
We could even remove the hasExpired() check and pass a time point in the
past too. Right now, there's a minor performance drawback for
tryLockForXxxx(), because we will make at least two system calls to get
the time.
Change-Id: I6f518d59e63249ddbf43fffd1759fc5b2e40256a
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/thread/qmutex.cpp')
0 files changed, 0 insertions, 0 deletions
