OSDN Git Service

Bluetooth: Add a timeout in async_fd_watcher
authorMyles Watson <mylesgw@google.com>
Wed, 25 Jan 2017 00:51:39 +0000 (16:51 -0800)
committerMyles Watson <mylesgw@google.com>
Tue, 31 Jan 2017 04:32:16 +0000 (04:32 +0000)
commit7d42dcad6ebae4f8c8769b3a235bff679724bb66
tree043081b677ce174aa5249029add059d59292bc39
parent76cf8574039fbcb8ed260d486126eacba049cbcf
Bluetooth: Add a timeout in async_fd_watcher

Add a timeout to the select call and a callback.
Add unit tests for async_fd_watcher.

Test: unit tests pass
Change-Id: I0076fd52e79aac0d2a9fcceb90aae318d5f0757b
bluetooth/1.0/default/Android.bp
bluetooth/1.0/default/async_fd_watcher.cc
bluetooth/1.0/default/async_fd_watcher.h
bluetooth/1.0/default/test/async_fd_watcher_unittest.cc [new file with mode: 0644]