OSDN Git Service

Bluetooth: AsyncFdWatcher: Refactor timeout lock
authorMyles Watson <mylesgw@google.com>
Thu, 2 Feb 2017 18:47:36 +0000 (10:47 -0800)
committerMyles Watson <mylesgw@google.com>
Thu, 2 Feb 2017 22:15:49 +0000 (22:15 +0000)
commiteba1312c8613eb27ff1d671fa8db7b65689192cf
tree2cce44cb79b00f100979a195dbf6a3bb8f795201
parent4e2e8ec4e0c6635f64dedf6bd29db4fdcbd3f172
Bluetooth: AsyncFdWatcher: Refactor timeout lock

Allow timeouts to change the timeout.
Add a unit test for this.

Test: Unit tests pass, Bluetooth starts and stops.
Change-Id: I1be8a18dd74a312175ec9c27de37213272650e8e
bluetooth/1.0/default/async_fd_watcher.cc
bluetooth/1.0/default/test/async_fd_watcher_unittest.cc