replicant-frameworks_native/services/surfaceflinger
Mathias Agopian 4f11374018 Fix a race-condtion in SurfaceFlinger that could lead to a crash.
Client::mLayers could be accessed from different threads.
On one side from Client::attachLayer() which is currently
called from a binder thread; on the other side from
Client::detachLayer() which is always called from the main
thread.

This could lead to a corruption of Client::mLayers.

We fix this issue by adding an internal lock to Client.

Change-Id: Ib1317d7750ed5030e6f577efe34b69fc10198bd3
2011-05-03 16:21:41 -07:00
..
DisplayHardware Merge "remove support for console in SurfaceFlinger" 2011-04-19 18:19:15 -07:00
tests remove more unused references to ISurface 2011-04-05 20:11:55 -07:00
Android.mk merge libsurfaceflinger_client into libgui 2011-03-25 18:42:40 -07:00
Barrier.h
clz.cpp
clz.h
GLExtensions.cpp
GLExtensions.h
Layer.cpp am ba5aebd1: am ac505b86: am f0556bb9: am 86d1d747: Merge "Add lock before calling initEglImage" 2011-04-27 13:54:08 -07:00
Layer.h SurfaceFlinger: Respect the PROTECTED gralloc bit. 2011-03-10 16:25:48 -08:00
LayerBase.cpp revert the surface purgatory list and dependent changes. 2011-03-09 17:00:41 -08:00
LayerBase.h SurfaceFlinger: Respect the PROTECTED gralloc bit. 2011-03-10 16:25:48 -08:00
LayerDim.cpp revert the surface purgatory list and dependent changes. 2011-03-09 17:00:41 -08:00
LayerDim.h
MessageQueue.cpp
MessageQueue.h
MODULE_LICENSE_APACHE2
SurfaceFlinger.cpp Fix a race-condtion in SurfaceFlinger that could lead to a crash. 2011-05-03 16:21:41 -07:00
SurfaceFlinger.h Fix a race-condtion in SurfaceFlinger that could lead to a crash. 2011-05-03 16:21:41 -07:00
TextureManager.cpp
TextureManager.h
Transform.cpp
Transform.h