Skip to content

Commit

Permalink
Fix race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Pansysk75 committed Jul 20, 2023
1 parent b19cb1e commit 3a5a47a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/core/futures/src/future_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ namespace hpx::lcos::detail {
// this thread would block on the future
threads::thread_id_ref_type runs_child = runs_child_;

if (!runs_child)
{
return false;
}

auto* thrd = get_thread_id_data(runs_child);
HPX_UNUSED(thrd); // might be unused

Expand Down

0 comments on commit 3a5a47a

Please sign in to comment.