From b62e1c4f6c050063e4d3591a8df97f0b5fa2ba53 Mon Sep 17 00:00:00 2001 From: Daniel Schmidt Date: Tue, 25 Aug 2026 13:03:24 +0200 Subject: [PATCH] Fix missing enqueue notifications in timed_thread_context. The push_back of the command queue can return false during insertion of a new command. --- include/exec/timed_thread_scheduler.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/exec/timed_thread_scheduler.hpp b/include/exec/timed_thread_scheduler.hpp index b19e5a262..e2516e92e 100644 --- a/include/exec/timed_thread_scheduler.hpp +++ b/include/exec/timed_thread_scheduler.hpp @@ -229,12 +229,12 @@ namespace experimental::execution STDEXEC::__std::memory_order_relaxed); return; } - if (command_queue_.push_back(op)) + command_queue_.push_back(op); { std::scoped_lock lock{ready_mutex_}; ready_ = true; - cv_.notify_one(); } + cv_.notify_one(); n_submissions_in_flight_.fetch_sub(1, STDEXEC::__std::memory_order_relaxed); }