]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Don't rely on deduction in run-on-main-thread.c
authorTom Tromey <tromey@adacore.com>
Wed, 1 Oct 2025 16:27:37 +0000 (10:27 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 2 Oct 2025 17:55:14 +0000 (11:55 -0600)
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

index bf53163b6b717bc7101619da15ce45810952284d..0cfe4716c24739f4de3daacff555e546ea2e5925 100644 (file)
@@ -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<std::mutex> lock (runnable_mutex);
 #endif
       runnables.clear ();
     });