mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-27 03:51:22 -03:00
Use fd_event_signaller in iothread completions
This simplifies how iothread notices when there are completions ready to run.
This commit is contained in:
@@ -2480,9 +2480,9 @@ void reader_data_t::finish_highlighting_before_exec() {
|
||||
auto deadline = now + sc::milliseconds(kHighlightTimeoutForExecutionMs);
|
||||
while (now < deadline) {
|
||||
long timeout_usec = sc::duration_cast<sc::microseconds>(deadline - now).count();
|
||||
iothread_service_completion_with_timeout(timeout_usec);
|
||||
iothread_service_main_with_timeout(timeout_usec);
|
||||
|
||||
// Note iothread_service_completion_with_timeout will reentrantly modify us,
|
||||
// Note iothread_service_main_with_timeout will reentrantly modify us,
|
||||
// by invoking a completion.
|
||||
if (in_flight_highlight_request.empty()) break;
|
||||
now = sc::steady_clock::now();
|
||||
|
||||
Reference in New Issue
Block a user