diff options
| author | 2010-10-01 18:55:43 -0700 | |
|---|---|---|
| committer | 2010-10-01 18:55:43 -0700 | |
| commit | 1ad00e96fe0d10c4fa9b870b42f3ea90b17a2d7f (patch) | |
| tree | 37d6e953936e4d9615d079366a1914f668eaed03 /include/ui/InputReader.h | |
| parent | 2806e381cf08ef3073634b1fdd1f656c1750a7eb (diff) | |
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
Diffstat (limited to 'include/ui/InputReader.h')
| -rw-r--r-- | include/ui/InputReader.h | 6 |
1 files changed, 3 insertions, 3 deletions
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; |