summaryrefslogtreecommitdiffstats
path: root/modules/sensors/SensorEventQueue.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Removed unneeded linux/input.h includes, to fix Mac SDK buildAaron Whyte2013-11-141-1/+0
| | | | Change-Id: I3bcfadb9c95a9239d8098989c60d5604bfdfb66f
* Tests SensorEventQueue I/O when the queue is full.Aaron Whyte2013-11-141-1/+5
| | | | | | Reduced debug logging in multihal. Change-Id: I30e80630ce5d97776c53f26d6096ef59b9b2f35a
* MultiHal multithreaded pollingAaron Whyte2013-11-141-35/+13
| | | | Change-Id: I3ebe380169eed1c8deeca2860d1788be6c14837e
* Added a SensorEventQueue, a circular buffer meant for reading with one threadAaron Whyte2013-11-141-0/+110
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. Change-Id: I58418d69eebebeb96befb08ba3aed080f0f08551