Skip to content

Commit

Permalink
Merge pull request #3223 from STEllAR-GROUP/msimberg-patch-2
Browse files Browse the repository at this point in the history
Fix returns when setting config entries
  • Loading branch information
hkaiser committed Mar 10, 2018
2 parents 814fd72 + c957ec9 commit 737f04b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/runtime.cpp
Expand Up @@ -817,11 +817,13 @@ namespace hpx
if (get_runtime_ptr() != nullptr)
{
get_runtime_ptr()->get_config().add_entry(key, value);
return;
}
if (resource::is_partitioner_valid())
{
resource::get_partitioner()
.get_command_line_switches().rtcfg_.add_entry(key, value);
return;
}
}

Expand All @@ -831,12 +833,14 @@ namespace hpx
{
get_runtime_ptr()->get_config().add_entry(
key, std::to_string(value));
return;
}
if (resource::is_partitioner_valid())
{
resource::get_partitioner()
.get_command_line_switches().rtcfg_.
add_entry(key, std::to_string(value));
return;
}
}

Expand All @@ -848,12 +852,14 @@ namespace hpx
{
get_runtime_ptr()->get_config().add_notification_callback(
key, callback);
return;
}
if (resource::is_partitioner_valid())
{
return resource::get_partitioner()
resource::get_partitioner()
.get_command_line_switches()
.rtcfg_.add_notification_callback(key, callback);
return;
}
}

Expand Down

0 comments on commit 737f04b

Please sign in to comment.