Avoid race condition
authorPaul Olav Tvete <paul.tvete@nokia.com>
Tue, 13 Mar 2012 11:33:34 +0000 (12:33 +0100)
committerSamuel Rødal <samuel.rodal@nokia.com>
Tue, 13 Mar 2012 15:07:07 +0000 (16:07 +0100)
commit854c2fc96fff3b73b98819ca4810e5f97df37285
tree8fb47ab3d3c81147732a202537cfad99aa977147
parent6433819e7141af4dac103b2b74f1db4cc33954d1
Avoid race condition

m_damaged may be set from a different thread while updateTexture() is
being executed. This change does not eliminate the race completely, but
will fail by creating the same texture twice instead of keeping an old,
invalid one.

Change-Id: Ic34d6df1699bd3d94fde3590343e4a524c9de6a2
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/compositor/compositor_api/waylandsurfaceitem.cpp