diff options
author | Thiago Macieira <[email protected]> | 2023-05-22 19:32:20 -0700 |
---|---|---|
committer | Thiago Macieira <[email protected]> | 2025-06-30 07:23:56 -0700 |
commit | 6679efd2a4cc23de4ed947ef567a799d474e2079 (patch) | |
tree | f873fb493b518f68994705329b73bd4babb7a278 /src/widgets/kernel | |
parent | 5bd58d67c14ac765a2a0abb7d5dbb499ac60f13b (diff) |
Replace one-shot uses of QSemaphore with QLatch
This commit replaces one-shot synchronization of threads that were using
QSemaphore with QLatch. QSemaphore is efficient on Linux and Windows,
but allocates memory elsewhere. Even on those platforms where we have
futex-like OS support, QSemaphore is heavier than what we really need
here.
All but one uses of QSemaphore in qtbase libraries (I didn't change
examples or tests) were replaced. The remaining use of QSemaphore in
qnetworkproxy_libproxy.cpp is a proper producer-consumer.
Change-Id: Ib5ce7a497e034ebabb2cfffd1761a4fcb2be9a6c
Reviewed-by: Volker Hilsheimer <[email protected]>
Diffstat (limited to 'src/widgets/kernel')
0 files changed, 0 insertions, 0 deletions