OSDN Git Service

Common: Replace ExecutionBarrier with std::promise and std::future
authorJack He <siyuanh@google.com>
Sat, 25 Aug 2018 00:14:10 +0000 (17:14 -0700)
committerJack He <siyuanh@google.com>
Mon, 27 Aug 2018 20:59:56 +0000 (13:59 -0700)
commitf607f2d1a434698d3c44a500042e07225a7a4dd0
treedd92936f0ad170d3dfbeb8df46f60adbed525159
parentc788ad703836f6ac0f63e47b20f27b41dcce9353
Common: Replace ExecutionBarrier with std::promise and std::future

* std::promise and std::future are able to achieve the same
  functionalities of ExecutionBarrier with extra flexibility
* Replace "_barrier" with "_promise" in system/bt/common

Bug: 110303473
Fixes: 112159657
Test: mm -j40, unit test
Change-Id: I2a420bbf16bf92e4b3dd256d9f23480fc2be7be1
common/Android.bp
common/benchmark/thread_performance_benchmark.cc
common/execution_barrier.cc [deleted file]
common/execution_barrier.h [deleted file]
common/execution_barrier_unittest.cc [deleted file]
common/message_loop_thread.cc
common/message_loop_thread.h
common/message_loop_thread_unittest.cc
common/test/thread_performance_test.cc