Patrick
Patrick

Reputation: 525

Waiting for a signal or timeout with bordeaux-threads

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

Upvotes: 0

Views: 415

Answers (1)

Vsevolod Dyomkin
Vsevolod Dyomkin

Reputation: 9451

Bordeaux-threads doesn't have such feature, so you should use the signal handling facilities of your implementation. Maybe cl-signal-handler can be useful. Also see this question for some additional details.

Upvotes: 1

Related Questions