Skip to content

Commit

Permalink
Wait for threads before destroying scheduler
Browse files Browse the repository at this point in the history
Avoid crashes when worker threads access blocks owned by the already
destroyed scheduler.
  • Loading branch information
frankosterfeld committed Oct 1, 2024
1 parent 65b3ae9 commit aa1ec79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/include/gnuradio-4.0/Scheduler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class SchedulerBase : public Block<Derived> {
std::abort();
}
}
waitDone();
}

[[nodiscard]] bool isProcessing() const
Expand Down

0 comments on commit aa1ec79

Please sign in to comment.