summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2016-11-28 08:53:41 +0000
committerDavide Italiano <davide@freebsd.org>2016-11-28 08:53:41 +0000
commit3ea0bfa7e02808637eca838933aee980cc1c1d88 (patch)
tree689f58652be98d73eca2c64d7986043da665ec19 /llvm/unittests/Support
parent43c24282039f03caabf7a7b2196d22a076f5b592 (diff)
downloadbcm5719-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.cpp16
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
OpenPOWER on IntegriCloud