Skip to content

Commit

Permalink
Resolving problems during shutdown for VS2015
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Feb 28, 2018
1 parent a3faea3 commit 9e40843
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/resource/partitioner.cpp
Expand Up @@ -140,7 +140,8 @@ namespace hpx { namespace resource

void delete_partitioner()
{
std::lock_guard<compat::mutex> l(partitioner_mtx());
// don't lock the mutex as otherwise will be still locked while
// being destroyed (leading to problems on some platforms)
std::unique_ptr<detail::partitioner>& part = partitioner_ref();
if (part)
part.reset();
Expand Down

0 comments on commit 9e40843

Please sign in to comment.