Use fd_event_signaller in iothread completions

This simplifies how iothread notices when there are completions ready to
run.
This commit is contained in:
ridiculousfish
2021-02-06 18:43:43 -08:00
parent 8066428feb
commit e004930947
5 changed files with 64 additions and 88 deletions

View File

@@ -124,7 +124,7 @@ char_event_t input_event_queue_t::readb() {
// Check for iothread completions only if there is no data to be read from the stdin.
// This gives priority to the foreground.
if (ioport > 0 && FD_ISSET(ioport, &fdset)) {
iothread_service_completion();
iothread_service_main();
if (auto mc = pop_discard_timeouts()) {
return *mc;
}