[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 23:10:48 -0500 |
On Sun, Dec 11, 2016 at 10:41 PM, Eli Zaretskii <address@hidden> wrote:
>> From: Noam Postavsky <address@hidden>
>> Date: Sun, 11 Dec 2016 16:58:49 -0500
>> Cc: Emacs developers <address@hidden>, Eli Zaretskii <address@hidden>
>>
>> >> 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.
>
> What would be the indication of the thread receiving the signal? Both
> in general and specifically in Juliusz's snippet?
In general, that any condition-case or unwind-protect forms should
run. Since Juliusz's snippet had no other signal catching constructs,
the signaled thread would just exit, I suppose.
>
> Please note that the current implementation effectively makes non-main
> threads run with all errors caught, so signaling an error has much
> less spectacular consequences than in the main thread.