Common Lisp Tips and Tricks
A collection of simple tips and tricks for the inexperienced Common Lisp programmers like myself. List (and terminate) running threads Using SBCL native functions ;; list all - mind the names CL-USER> (sb-thread:list-all-threads) (#<SB-THREAD:THREAD "main thread" RUNNING {1001878913}> #<SB-THREAD:THREAD "auto-flush-thread" RUNNING {10020BFDB3}> #<SB-THREAD:THREAD "my main loop" RUNNING {100492B8E3}> ;; this is the thread i suspect #<SB-THREAD:THREAD "reader-thread" RUNNING {1004AEFD13}> #<SB-THREAD:THREAD "swank-indentation-cache-thread" RUNNING {1004AEFE23}> #<SB-THREAD:THREAD "finalizer" RUNNING {1001E30053}> #<SB-THREAD:THREAD "repl-thread" RUNNING {10020C1BC3}> #<SB-THREAD:THREAD "control-thread" RUNNING {1004AF2853}>) ;; find the thread by name and terminate it CL-USER> (sb-thread:terminate-thread (find "my main loop...