summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2017-02-14 16:52:19 +0100
committerMarc Mutz <marc.mutz@kdab.com>2017-02-14 21:11:03 +0000
commit265db5ad9bda9c984393c1e95fd27dcc4633ed1c (patch)
tree539c8c5e60caafe0174aa030fb9ea3bc7454d897 /src/corelib/thread
parent5fcdb6c459ebea5e1762e8ba6f0ea1191e19f523 (diff)
QJNIHelper: clean up atomic int and mutex handling
1. Do not use Q_GLOBAL_STATIC to hold QAtomicInt or QMutex, use file-static QBasicAtomicInt and QBasicMutex instead. They are zero-initialized PODs. 2. Use only QMutexLocker to lock mutexes. Also wrap the atomic counter into a next...() function, as done elsewhere. Change-Id: I4b14ac0de9d4cb6780b1f1372c2b5fc88e918e4c Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/thread')
0 files changed, 0 insertions, 0 deletions