From 29c3f00511bbde3190509bde506a0fee555b71b1 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 1 Oct 2025 10:27:37 -0600 Subject: [PATCH] Don't rely on deduction in run-on-main-thread.c This changes one spot in run-on-main-thread.c to use an explicit template argument, rather than relying on deduction. The deduction would otherwise fail with the next patch. --- gdb/run-on-main-thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/run-on-main-thread.c b/gdb/run-on-main-thread.c index bf53163b6b7..0cfe4716c24 100644 --- a/gdb/run-on-main-thread.c +++ b/gdb/run-on-main-thread.c @@ -151,7 +151,7 @@ INIT_GDB_FILE (run_on_main_thread) add_final_cleanup ([] () { #if CXX_STD_THREAD - std::lock_guard lock (runnable_mutex); + std::lock_guard lock (runnable_mutex); #endif runnables.clear (); }); -- 2.47.3