• Eli Zaretskii's avatar
    Avoid aborts when a thread signals an error · 99708163
    Eli Zaretskii authored
    * src/thread.h (struct thread_state): Add members
    m_waiting_for_input and m_input_available_clear_time.
    (waiting_for_input, input_available_clear_time): New macros.
    * src/keyboard.c (waiting_for_input, input_available_clear_time):
    Remove; they are now macros that reference the current thread.
    (Bug#25171)
    * src/w32select.c: Don't include keyboard.h.
    
    * test/src/thread-tests.el (thread-errors): New test.
    99708163
keyboard.h 17.8 KB