Skip to content

Commit

Permalink
Adding more logging during startup
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Dec 1, 2017
1 parent a194f03 commit cd29421
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/runtime_impl.cpp
Expand Up @@ -274,14 +274,26 @@ namespace hpx {
get_config_entry("hpx.on_startup.wait_on_latch", ""));
if (!connect_back_to.empty())
{
lbt_ << "(5th stage) runtime_impl::run_helper: about to "
"synchronize with latch: "
<< connect_back_to;

// inform launching process that this locality is up and running
hpx::lcos::latch l;
l.connect_to(connect_back_to);
l.count_down_and_wait();

lbt_ << "(5th stage) runtime_impl::run_helper: "
"synchronized with latch: "
<< connect_back_to;
}

// Now, execute the user supplied thread function (hpx_main)
if (!!func) {
if (!!func)
{
lbt_ << "(last stage) runtime_impl::run_helper: about to "
"invoke hpx_main";

// Change our thread description, as we're about to call hpx_main
threads::set_thread_description(threads::get_self_id(), "hpx_main");

Expand Down

0 comments on commit cd29421

Please sign in to comment.