summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qtimer.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2025-01-14 18:01:56 -0800
committerThiago Macieira <thiago.macieira@intel.com>2025-03-19 10:33:44 -0700
commit009131e55618466763330d8bd02dbd07af4abeac (patch)
treeb81b43c62e89dfabc54988f2ce7f06cd8f6cce62 /src/corelib/kernel/qtimer.cpp
parentc8ecd0eb22d5f2578439b8fed4db8879a91cb026 (diff)
QMessageLogger: initialize QT_FATAL_xxx cooperatively between threads
The use of function-local static implied there was a guard variable to perform a thread-safe initialization (a critical section). We don't need that: we can just use a plain QBasicAtomicInt and cooperatively initialize, in parallel. This way, the QMessageLogger code does not need to check the status of the guard variable before every access to the atomic, which would be an atomic access before the atomic access. Change-Id: Iedfbe8e28ca5168dea43fffddf205d122c97f71c Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib/kernel/qtimer.cpp')
0 files changed, 0 insertions, 0 deletions