input: Add input_item_parser_id_Interrupt
This effectively split input_item_parser_id_Release in 2 functions, allowing an asynchronous cancellation to occur. Otherwise, the input thread would invoke the callback synchronously while the thread cancelling the preparser is blocked joining the input thread. Both those thread are very likely to be called with a mutex held, which would cause a deadlock.
Showing with 21 additions and 2 deletions