commit | 2fdd76704a21fb6fb8bef349acf330aab54c22a8 | [log] [tgz] |
---|---|---|
author | Enrico Granata <egranata@google.com> | Fri Jan 22 18:01:24 2021 -0700 |
committer | Enrico Granata <egranata@google.com> | Tue Jan 26 10:53:30 2021 -0700 |
tree | aa8ef0e83aded97a7959bcc3fcb9556977a32d98 | |
parent | ef06bdc09c306674b61c99865c4d56a16e91c350 [diff] |
Create a helper object to wrap polling on multiple file descriptors This helper API can be used to reliably poll on a dynamically increasing set of file descriptors, and it provides a functional callback on top of the C poll() API. As is, it only supports POLLIN as that is what the Sensor API needs, but more event types can be added Bug: 158763319 Test: atest --host android.hardware.sensors@2.0-Google-IIO-Subhal_test-MultiPoll Change-Id: Ifabd1d06b595e93bfaf8e0ffab7b783fbcc73b40