emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crashing the new thread code


From: Noam Postavsky
Subject: Re: Crashing the new thread code
Date: Sun, 11 Dec 2016 16:58:49 -0500

On Sun, Dec 11, 2016 at 4:22 PM, Juliusz Chroboczek <address@hidden> wrote:
>>> The following immediately crashes Emacs:
>>>
>>> (let ((thread (make-thread #'(lambda () (while t (thread-yield))))))
>>>   (thread-signal thread 'error nil))
>
>> What is the semantics of signaling a thread that yields?
>
> I'm not sure, that's why I was experimenting.
>
>> What did you expect to happen?
>
> The thread queues the condition and continues spinning?

I would expect the thread to receive the signal as soon as it starts
running again.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]