I use sbcl and i have a thread, that just performs a specific task (writes something into a file), falls into sleep for 30 seconds and repeats.
What i want to achieve is: If the user wants the program to stop, the thread shall wake up immediately, write to the file and stop itself.
Can anyone give me a hint? kind regards, Patrick