Browse Source

Removed ThreadPool join at exit

Paul-Louis Ageneau 4 years ago
parent
commit
be9425b381
1 changed files with 1 additions and 7 deletions
  1. 1 7
      src/impl/threadpool.cpp

+ 1 - 7
src/impl/threadpool.cpp

@@ -20,12 +20,6 @@
 
 #include <cstdlib>
 
-namespace {
-
-void joinThreadPoolInstance() { rtc::impl::ThreadPool::Instance().join(); }
-
-} // namespace
-
 namespace rtc::impl {
 
 ThreadPool &ThreadPool::Instance() {
@@ -33,7 +27,7 @@ ThreadPool &ThreadPool::Instance() {
 	return *instance;
 }
 
-ThreadPool::ThreadPool() { std::atexit(joinThreadPoolInstance); }
+ThreadPool::ThreadPool() {}
 
 ThreadPool::~ThreadPool() {}