OSDN Git Service

ART: Change ThreadPool::Wait behavior
authorAndreas Gampe <agampe@google.com>
Wed, 16 Nov 2016 21:58:05 +0000 (13:58 -0800)
committerAndreas Gampe <agampe@google.com>
Thu, 17 Nov 2016 16:33:16 +0000 (08:33 -0800)
commit6f3a70f316f2f3dcde5b3bde5fb258c556c46da6
treee44245379077f57dee20b8576fa96c3d4c31704a
parent85347bd18d47066ea9a214d29cec994472ad18ca
ART: Change ThreadPool::Wait behavior

When a pool is in the stopped state, Wait() will not wait for all
tasks to complete.

Bug: 31385354
Test: m test-art-host-gtest-thread_pool_test
Change-Id: Id0144b685ee2fddf1a1c2c2ca334251130121033
runtime/thread_pool.cc
runtime/thread_pool.h
runtime/thread_pool_test.cc