summaryrefslogtreecommitdiff
path: root/services/input/InputReader.cpp
diff options
context:
space:
mode:
author Jeff Brown <jeffbrown@google.com> 2011-08-10 16:25:21 -0700
committer Jeff Brown <jeffbrown@google.com> 2011-08-10 16:25:21 -0700
commit89ef0720ee8e0ac6ae1758faa917e4d6c9606fb4 (patch)
tree2c239993b3d2702dd8becc03a738f1b151a4c4f1 /services/input/InputReader.cpp
parentba421dddfd558b34726df5dfbf8a3bf748e285b1 (diff)
Add input system to Watchdog.
Bug: 5094994 Change-Id: I153866958efc64ac19bda8b997c1c9f6ad425ec4
Diffstat (limited to 'services/input/InputReader.cpp')
-rw-r--r--services/input/InputReader.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/services/input/InputReader.cpp b/services/input/InputReader.cpp
index dacc73f41d25..2eacbeb34172 100644
--- a/services/input/InputReader.cpp
+++ b/services/input/InputReader.cpp
@@ -731,6 +731,15 @@ void InputReader::dump(String8& dump) {
mConfig.pointerGestureZoomSpeedRatio);
}
+void InputReader::monitor() {
+ // Acquire and release the lock to ensure that the reader has not deadlocked.
+ mLock.lock();
+ mLock.unlock();
+
+ // Check the EventHub
+ mEventHub->monitor();
+}
+
// --- InputReader::ContextImpl ---