OSDN Git Service

Replace std::function with base::Closure
authorHansong Zhang <hsz@google.com>
Fri, 7 Jun 2019 04:44:55 +0000 (21:44 -0700)
committerHansong Zhang <hsz@google.com>
Wed, 12 Jun 2019 20:59:56 +0000 (13:59 -0700)
commitaa0875c1226b5b7b78386f96c0334f4638d0866b
tree8c3957be5a5ce2da35de1977d6f054719cf4f659
parent742fe6dbd1ab8efda32840253b5d12ec778d2620
Replace std::function with base::Closure

std::function doesn't support non-copyable arguments. Use base::Closure
and base::OnceClosure from libchrome instead.

Test: atest --host bluetooth_test_gd
Change-Id: Ic18bbc000730e8b0d7acff0097870bd258ee6150
31 files changed:
gd/Android.bp
gd/common/bidi_queue.h
gd/common/bidi_queue_unittest.cc
gd/common/bind.h [new file with mode: 0644]
gd/common/callback.h [new file with mode: 0644]
gd/hal/hci_hal_host_rootcanal.cc
gd/hci/hci_layer.cc
gd/hci/hci_layer.h
gd/hci/hci_layer_test.cc
gd/module.h
gd/os/alarm.h
gd/os/alarm_benchmark.cc
gd/os/handler.h
gd/os/linux_generic/alarm.cc
gd/os/linux_generic/alarm_unittest.cc
gd/os/linux_generic/handler.cc
gd/os/linux_generic/handler_unittest.cc
gd/os/linux_generic/queue.tpp
gd/os/linux_generic/queue_unittest.cc
gd/os/linux_generic/reactor.cc
gd/os/linux_generic/reactor_unittest.cc
gd/os/linux_generic/repeating_alarm.cc
gd/os/linux_generic/repeating_alarm_unittest.cc
gd/os/linux_generic/thread_unittest.cc
gd/os/queue.h
gd/os/queue_benchmark.cc
gd/os/reactor.h
gd/os/repeating_alarm.h
gd/os/thread_benchmark.cc
gd/stack_manager.cc
gd/stack_manager.h