From 89ef0720ee8e0ac6ae1758faa917e4d6c9606fb4 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Wed, 10 Aug 2011 16:25:21 -0700 Subject: Add input system to Watchdog. Bug: 5094994 Change-Id: I153866958efc64ac19bda8b997c1c9f6ad425ec4 --- services/input/EventHub.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'services/input/EventHub.cpp') diff --git a/services/input/EventHub.cpp b/services/input/EventHub.cpp index 0a567fd37d5e..960e4143e659 100644 --- a/services/input/EventHub.cpp +++ b/services/input/EventHub.cpp @@ -1294,4 +1294,11 @@ void EventHub::dump(String8& dump) { } // release lock } +void EventHub::monitor() { + // Acquire and release the lock to ensure that the event hub has not deadlocked. + mLock.lock(); + mLock.unlock(); +} + + }; // namespace android -- cgit v1.2.3-59-g8ed1b