Skip to content

Commit

Permalink
fix(lci pp): fix the null_thread_id bug in the LCI parcelport
Browse files Browse the repository at this point in the history
`send()` in the LCI parcelport can call HPX `yield()`. However,
`send()` can be called outside HPX threads, leading to HPX complaining
"null_thread_id".
  • Loading branch information
JiakunYan committed Dec 18, 2023
1 parent 8b438bf commit c30e9b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/full/parcelport_lci/src/sender_connection_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ namespace hpx::parcelset::policies::lci {
while (pp_->background_work(
-1, parcelport_background_mode_all))
continue;
hpx::this_thread::yield();
if (hpx::threads::get_self_id() !=
hpx::threads::invalid_thread_id)
hpx::this_thread::yield();
}
if (config_t::progress_type ==
config_t::progress_type_t::worker ||
Expand Down

0 comments on commit c30e9b1

Please sign in to comment.