Skip to content

Commit

Permalink
Allow interrupting an unresponsive thread with a debug interrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Nov 27, 2019
1 parent e3994d6 commit 6cefeb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions toolkit.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@
(error "Thread ~s did not exit after ~a s." (bt:thread-name thread) (* i interval))
(continue ()
:report "Continue waiting.")
(debug ()
:report "Try to interrupt the thread with a break."
(bt:interrupt-thread thread (lambda () (break))))
(abort ()
:report "Kill the thread and exit, risking corrupting the image."
(bt:destroy-thread thread)
Expand Down

0 comments on commit 6cefeb1

Please sign in to comment.