diff options
| author | 2011-08-10 16:25:21 -0700 | |
|---|---|---|
| committer | 2011-08-10 16:25:21 -0700 | |
| commit | 89ef0720ee8e0ac6ae1758faa917e4d6c9606fb4 (patch) | |
| tree | 2c239993b3d2702dd8becc03a738f1b151a4c4f1 /services/input/EventHub.cpp | |
| parent | ba421dddfd558b34726df5dfbf8a3bf748e285b1 (diff) | |
Add input system to Watchdog.
Bug: 5094994
Change-Id: I153866958efc64ac19bda8b997c1c9f6ad425ec4
Diffstat (limited to 'services/input/EventHub.cpp')
| -rw-r--r-- | services/input/EventHub.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 |