Skip to content

Commit

Permalink
Fix deadlock issue with MSVC re-introduced by fix for bug GitHub bug l…
Browse files Browse the repository at this point in the history
  • Loading branch information
wilx committed Aug 5, 2015
1 parent 13027c3 commit 3b31ccc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/global-init.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ Initializer::Initializer ()
}


// Forward declaration. Defined in this file.
void shutdownThreadPool();

Initializer::~Initializer ()
{
bool destroy = false;
Expand All @@ -109,6 +112,7 @@ Initializer::~Initializer ()
if (InitializerImpl::instance->count == 0)
{
destroy = true;
shutdownThreadPool();
Logger::shutdown ();
}
}
Expand Down

0 comments on commit 3b31ccc

Please sign in to comment.