diff options
author | Liang Jian <jianliang79@gmail.com> | 2014-03-27 17:59:59 +0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-27 17:51:21 +0100 |
commit | 666c25c089acf7fcc9e9a6b7665074c6286d604e (patch) | |
tree | ac37b417aa241e83ef8f01f8bfe28ea3781689e8 /src/plugins/platforms/ios/qioscontext.mm | |
parent | dd453adbe7611900ff20ee77141229c01fe1bc98 (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/plugins/platforms/ios/qioscontext.mm')
0 files changed, 0 insertions, 0 deletions