diff options
author | Mike Lockwood <lockwood@google.com> | 2013-10-17 08:05:00 -0700 |
---|---|---|
committer | Mike Lockwood <lockwood@google.com> | 2013-12-09 15:26:55 -0800 |
commit | f84776247777ca8710eca8a911f607e10256cc7d (patch) | |
tree | 7e3d4a68f572c131f2a4106448852189244030f0 /hardware.c | |
parent | 0bd030b5df7381949ff368f15ebca214560fbf22 (diff) | |
download | hardware_libhardware-f84776247777ca8710eca8a911f607e10256cc7d.zip hardware_libhardware-f84776247777ca8710eca8a911f607e10256cc7d.tar.gz hardware_libhardware-f84776247777ca8710eca8a911f607e10256cc7d.tar.bz2 |
DO NOT MERGE: Sensor multi HAL
Squashed commit of:
Move sensors multi HAL to libhardware
Added a SensorEventQueue, a circular buffer meant for reading with one thread
and polling a subhal with another. The writing thread gets access to pointers
in the internal buffer. This design avoids a memcpy on write when the multihal
fetches subhal events using poll().
Unit-tests include multithreaded reading and writing lots of events, in
random-sized chunks.
This is not used by the multihal yet. That will be a different CL.
MultiHal multithreaded polling
Tests SensorEventQueue I/O when the queue is full.
Reduced debug logging in multihal.
deactivated multihal logspam, made warnings warnings, left critical startup info
Removed unneeded linux/input.h includes, to fix Mac SDK build
Change-Id: I1e35508949df98a1acef7a4a2d012eea87b4a5eb
Diffstat (limited to 'hardware.c')
0 files changed, 0 insertions, 0 deletions