summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl
diff options
context:
space:
mode:
authorLiang Jian <jianliang79@gmail.com>2014-03-27 17:59:59 +0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-27 17:51:21 +0100
commit666c25c089acf7fcc9e9a6b7665074c6286d604e (patch)
treeac37b417aa241e83ef8f01f8bfe28ea3781689e8 /src/gui/opengl
parentdd453adbe7611900ff20ee77141229c01fe1bc98 (diff)
Fix race condition in QOpenGLMultiGroupSharedResource
In QOpenGLMultiGroupSharedResource::value(), the m_resources memeber of opengl context group will be checked and may be inserted a new value. This function may be called from different threads with the same opengl context group object: Think about that OpenGL context A and B are shared, they live in different thread, and in each thread we call QOpenGLContext::functions() to the context, that may cause the race I mentioned above. So I put a QMutexLocker to prevent race condition. Change-Id: I101a28f46b2af72b3094a9945880efeb3563482a Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/gui/opengl')
0 files changed, 0 insertions, 0 deletions