OSDN Git Service

Timer: Separate code path for single and periodic
authorHansong Zhang <hsz@google.com>
Thu, 20 Sep 2018 17:15:12 +0000 (10:15 -0700)
committerHansong Zhang <hsz@google.com>
Fri, 21 Sep 2018 23:37:07 +0000 (16:37 -0700)
commit68f91137221f303641eb22612c850f6e0d67f1a1
tree5792da1c0d7d7ada8b589287b1960580048f9f4e
parent425bca902631e712449e4200337d32c78fa2ff84
Timer: Separate code path for single and periodic

* Add helper RunSingleTask() and RunPeriodicTask() to handle two cases
  separately
* In RunTask(), check that it must run on specified message loop thread

Bug: 116081383
Test: Run bluetooth_test_common
Change-Id: Idc41b2a509f43dbe946b2e26f2afd775726514aa
common/timer.cc
common/timer.h