commit | 4f113740180b6512b43723c4728f262882dc9b45 | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Tue May 03 16:21:41 2011 -0700 |
committer | Mathias Agopian <mathias@google.com> | Tue May 03 16:21:41 2011 -0700 |
tree | a0a71ffb48dbe6daee69d6c4e906be2103303b52 | |
parent | 1c52ae3b726efee0af2c4bc9ad9b2bbc8236de92 [diff] |
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