[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Questions about throw-on-input
From: |
Stefan Monnier |
Subject: |
Re: Questions about throw-on-input |
Date: |
Mon, 11 May 2020 13:27:05 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> > It is unusual for non-main threads to wait for keyboard input
>> > descriptor. You shouldn't rely on that because it can only work very
>> > rarely, if at all, and when it does, you are likely to see serious
>> > problems. Normally, the 'pselect' call issued by a non-main thread
>> > will not mark the keyboard descriptor as being waited for.
>> Should input-pending-p and friends catch that case and signal an error, then?
> Do we want that?
I don't know. But hanging because `select` doesn't return the needed
information doesn't seem right either.
Maybe rather than signal an error, we should somehow make the main
thread run that code, so as to return the right answer?
Stefan
- Re: Questions about throw-on-input, (continued)
Re: Questions about throw-on-input, Stefan Monnier, 2020/05/07
Re: Questions about throw-on-input, Alexander Miller, 2020/05/09
Re: Questions about throw-on-input, Alexander Miller, 2020/05/10
- Re: Questions about throw-on-input, Eli Zaretskii, 2020/05/11
- Re: Questions about throw-on-input, Stefan Monnier, 2020/05/11
- Re: Questions about throw-on-input, Eli Zaretskii, 2020/05/11
- Re: Questions about throw-on-input,
Stefan Monnier <=
- Re: Questions about throw-on-input, Eli Zaretskii, 2020/05/11
- Re: Questions about throw-on-input, Alexander Miller, 2020/05/11
- Re: Questions about throw-on-input, Eli Zaretskii, 2020/05/11
- Re: Questions about throw-on-input, Stefan Monnier, 2020/05/11
- Re: Questions about throw-on-input, Alexander Miller, 2020/05/11
- Re: Questions about throw-on-input, Stefan Monnier, 2020/05/11
- Re: Questions about throw-on-input, Alexander Miller, 2020/05/12
- Re: Questions about throw-on-input, Eli Zaretskii, 2020/05/13
- Re: Questions about throw-on-input, Alexander Miller, 2020/05/13
- Re: Questions about throw-on-input, Philipp Stephani, 2020/05/14