summaryrefslogtreecommitdiffstats
path: root/lld/Common/Threads.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-11-07 23:12:41 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-11-07 23:12:41 +0000
commit37a575f8b69f21954116cb9fd544b060fcd63a5f (patch)
treea9e38a421124ff18b32587c2991f19b35a80dd8e /lld/Common/Threads.cpp
parentc78890640e294b1872e1ea04c4e48d874d305990 (diff)
downloadbcm5719-llvm-37a575f8b69f21954116cb9fd544b060fcd63a5f.tar.gz
bcm5719-llvm-37a575f8b69f21954116cb9fd544b060fcd63a5f.zip
Delete dead code.
llvm-svn: 317633
Diffstat (limited to 'lld/Common/Threads.cpp')
-rw-r--r--lld/Common/Threads.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/lld/Common/Threads.cpp b/lld/Common/Threads.cpp
index 2667683a1c8..c64b8c38b90 100644
--- a/lld/Common/Threads.cpp
+++ b/lld/Common/Threads.cpp
@@ -8,25 +8,5 @@
//===----------------------------------------------------------------------===//
#include "lld/Common/Threads.h"
-#include <thread>
-#include <vector>
-
-static std::vector<std::thread> Threads;
bool lld::ThreadsEnabled = true;
-
-// Runs a given function in a new thread.
-void lld::runBackground(std::function<void()> Fn) {
- Threads.emplace_back(Fn);
-}
-
-// Wait for all threads spawned for runBackground() to finish.
-//
-// You need to call this function from the main thread before exiting
-// because it is not defined what will happen to non-main threads when
-// the main thread exits.
-void lld::waitForBackgroundThreads() {
- for (std::thread &T : Threads)
- if (T.joinable())
- T.join();
-}
OpenPOWER on IntegriCloud