summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger
diff options
context:
space:
mode:
authorAravind Akella <aakella@google.com>2014-09-24 22:12:58 -0700
committerAravind Akella <aakella@google.com>2014-09-28 21:26:49 +0000
commite148bc29c27ae7a346fa686fdda6425ba202d97a (patch)
tree1dbe3a37705e4de0e98c40ff1378663b04ed7c50 /services/surfaceflinger
parent728a8da14638e718ede11a7a894705524fc9d171 (diff)
downloadframeworks_native-e148bc29c27ae7a346fa686fdda6425ba202d97a.zip
frameworks_native-e148bc29c27ae7a346fa686fdda6425ba202d97a.tar.gz
frameworks_native-e148bc29c27ae7a346fa686fdda6425ba202d97a.tar.bz2
Fix a possible SensorService deadlock.
If the destructor of SensorEventConnection gets called when the main sendEvents loop of SensorService is executing it may result in a deadlock. The loop promotes each connection to a strong_pointer, calls sendEvents and cleans up the connection if necessary. It is possible that the sp's destructor may delete SensorEventConnection which will call the dtor ~SensorEventConnection(). This dtor again needs SensorService mLock to execute which may result in a deadlock. Bug: 17617897 Change-Id: I76c244dbe85fadb591c0bd1a9a5eb01d93f56505
Diffstat (limited to 'services/surfaceflinger')
0 files changed, 0 insertions, 0 deletions