diff options
author | Davide Italiano <davide@freebsd.org> | 2016-11-28 08:53:41 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2016-11-28 08:53:41 +0000 |
commit | 3ea0bfa7e02808637eca838933aee980cc1c1d88 (patch) | |
tree | 689f58652be98d73eca2c64d7986043da665ec19 /llvm/unittests/Support | |
parent | 43c24282039f03caabf7a7b2196d22a076f5b592 (diff) | |
download | bcm5719-llvm-3ea0bfa7e02808637eca838933aee980cc1c1d88.tar.gz bcm5719-llvm-3ea0bfa7e02808637eca838933aee980cc1c1d88.zip |
[ThreadPool] Simplify the interface. NFCI.
The callers don't use the return value. Found by Michael
Spencer.
llvm-svn: 288016
Diffstat (limited to 'llvm/unittests/Support')
-rw-r--r-- | llvm/unittests/Support/ThreadPool.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/unittests/Support/ThreadPool.cpp b/llvm/unittests/Support/ThreadPool.cpp index 8e03aacfb1e..bb972f7daa9 100644 --- a/llvm/unittests/Support/ThreadPool.cpp +++ b/llvm/unittests/Support/ThreadPool.cpp @@ -131,22 +131,6 @@ TEST_F(ThreadPoolTest, Async) { ASSERT_EQ(2, i.load()); } -TEST_F(ThreadPoolTest, GetFuture) { - CHECK_UNSUPPORTED(); - ThreadPool Pool{2}; - std::atomic_int i{0}; - Pool.async([this, &i] { - waitForMainThread(); - ++i; - }); - // Force the future using get() - Pool.async([&i] { ++i; }).get(); - ASSERT_NE(2, i.load()); - setMainThreadReady(); - Pool.wait(); - ASSERT_EQ(2, i.load()); -} - TEST_F(ThreadPoolTest, PoolDestruction) { CHECK_UNSUPPORTED(); // Test that we are waiting on destruction |