summaryrefslogtreecommitdiffstats
path: root/src/opengl/doc/snippets/code
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2014-04-26 16:32:06 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-06 00:11:04 +0200
commit007252adb9008a05940972a4332bce5d00512570 (patch)
tree6a531650466877d0ffeaff81c1c6df80f3cacb0a /src/opengl/doc/snippets/code
parent5b300a152699fa1ae833eb38066f3cbd60b61142 (diff)
QRegularExpression: lock a mutex only if there's actual work to do
We can do the (atomic) test of studyData before locking the mutex protecting the entire function body. Change-Id: I3006e3a0028608f21668ddaebe8a799aed56362f Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/opengl/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions