OSDN Git Service

fix a deadlock when removing a DisplayEventConnection
authorMathias Agopian <mathias@google.com>
Mon, 5 Dec 2011 22:33:34 +0000 (14:33 -0800)
committerMathias Agopian <mathias@google.com>
Tue, 6 Dec 2011 03:58:47 +0000 (19:58 -0800)
commit23748668d33ac850e64d87e25ac4cc78679c9384
treea4f7155e7d0e10895947a985fd9e447a72f9a5a0
parent2892cb045d88a75b6cd8b0d6b0d71b4b68c00f52
fix a deadlock when removing a DisplayEventConnection

the deadlock would happen when the pipe became invalid and SF
trying to remove the connection from its list.

we know make sure to process events without holding a lock.

Change-Id: I39927ed8824fc7811e16db3c7608a2ebc72d9642
services/surfaceflinger/EventThread.cpp
services/surfaceflinger/EventThread.h