From 1ad00e96fe0d10c4fa9b870b42f3ea90b17a2d7f Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Fri, 1 Oct 2010 18:55:43 -0700 Subject: Wait for initial device scan to finish before updating config. This change narrows the opportunity for a race condition setting the resource Configuration while devices are being updated. Change-Id: I58efa563f4129ab0fce7108511d16a99dff7e451 --- include/ui/InputReader.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/ui/InputReader.h') diff --git a/include/ui/InputReader.h b/include/ui/InputReader.h index 2209cb80dc..3619189e10 100644 --- a/include/ui/InputReader.h +++ b/include/ui/InputReader.h @@ -279,14 +279,14 @@ private: // low-level input event decoding and device management void process(const RawEvent* rawEvent); - void addDevice(nsecs_t when, int32_t deviceId); - void removeDevice(nsecs_t when, int32_t deviceId); + void addDevice(int32_t deviceId); + void removeDevice(int32_t deviceId); InputDevice* createDevice(int32_t deviceId, const String8& name, uint32_t classes); void configureExcludedDevices(); void consumeEvent(const RawEvent* rawEvent); - void handleConfigurationChanged(nsecs_t when); + void handleConfigurationChanged(); // state management for all devices Mutex mStateLock; -- cgit v1.2.3-59-g8ed1b