
delivered to both the GUI and simulator thread, so they both call bx_signal_handler. This can lead to deadlock as multiple threads enter BX_PANIC and try to show a dialog box at once. To solve the problem, I made a function isSimThread() which can be called from anywhere. If the bx_signal_handler is called from any thread OTHER THAN the simulation thread, it returns without doing anything. As a result, only one thread is allowed to enter the signal handler code, and now control-C works correctly.
Description
No description provided
Languages
C++
69.5%
C
21.2%
Shell
3%
Makefile
2.1%
Rez
1.9%
Other
2.1%