summaryrefslogtreecommitdiffstats
path: root/src/network/bearer
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2019-06-25 22:21:44 +0200
committerMarc Mutz <marc.mutz@kdab.com>2019-06-27 20:00:17 +0200
commit8da3eea4fb702c2dc369c1628e91a034569aa9f0 (patch)
treedfba3d5c551cbe4355f0cc3f11a783a5a2586dab /src/network/bearer
parent6fa34930c23c7494a3f2703777f46794ff091e2b (diff)
Optimize some atomic counters
Define the static QAtomic at file scope to avoid GCC's pessimisation with function-static QAtomic (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79561), and make sure the initial value is 0, so it ends up in BSS, not TEXT. In QRhi..., don't create a static instance of the wrapper class, use a file- static atomic, too. This turns the class into a glorified namespace. Change-Id: I707f628e2b434330028077223071716d5704ba32 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/bearer')
0 files changed, 0 insertions, 0 deletions