-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
serial: Use non-blocking reads in a polling loop
Instead of doing blocking reads, which are not cancellable and therefore cause deadlocks when the .shutdown callback is called, use a fast polling loop with non-blocking reads. This fixes the read thread not closing on shutdown. Signed-off-by: Paul Cercueil <paul@crapouillou.net>
- Loading branch information
Showing
1 changed file
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters