The loop this commit removed tries to sleep and wait for the IO DLL to write something to uart->readable. It doesn't work for two reasons: 1. When uart_handle_read() is sleeping, its caller holds the lock for the resource, meaning nothing can be writen, and it always times out. 2. Even without the deadlock problem, due to timer resolution limit on Windows, Sleep(1) does not actually sleep 1ms. Instead it sleeps over 15ms by default. The symptom is a noticable input lag, and lost inputs. This commit tries to fix that. Reviewed-on: #2 Co-authored-by: octocat <git.rascal570@passinbox.com> Co-committed-by: octocat <git.rascal570@passinbox.com>
Description
Languages
C
98.6%
Meson
1.4%