You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems that if the C function is running in the main python thread, then it is cumbersome to capture Ctrl-C. Easiest work-around might be spawn two python threads and run the calculations in the background thread while the main thread continues to run. If a KeyBoardInterrupt (or some other exception) is raised, then the main thread can send a SIGINT to the C function.
The text was updated successfully, but these errors were encountered:
Seems that if the C function is running in the main python thread, then it is cumbersome to capture Ctrl-C. Easiest work-around might be spawn two python threads and run the calculations in the background thread while the main thread continues to run. If a KeyBoardInterrupt (or some other exception) is raised, then the main thread can send a SIGINT to the C function.
The text was updated successfully, but these errors were encountered: