Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
broadcast_should_exit: fixed signalling
Since the function can be called from the signal handler, there must not be any call to signal unsafe function (see signal-safety(7)). Actually, this is not just a fix of a possible problem but it caused activelly problems within the reflector when 2 signals were raised one shortly after anotner. Was stuck at following (snippet): ``` std::unique_lock<std::mutex>::unique_lock(std::mutex&) at /usr/include/c++/14.1.1/bits/unique_lock.h:74 (inlined by) state_root::broadcast_should_exit() at /home/martin/Projects/ultragrid/src/host.cpp:533 exit_uv at /home/martin/Projects/ultragrid/src/host.cpp:587 signal_handler(int) at /home/martin/Projects/ultragrid/src/hd-rum-translator/hd-rum-translator.cpp:219 ```
- Loading branch information