[PATCH] Use rvalue reference in thread_pool::post_task

Tom Tromey tromey@adacore.com
Fri Apr 30 16:04:05 GMT 2021


>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:

Tom> Tankut's recent patches made me realize that thread_pool::post_task
Tom> should have used an rvalue reference for its parameter.  This patch
Tom> makes this change.

Tom> gdbsupport/ChangeLog
Tom> 2021-04-21  Tom Tromey  <tromey@adacore.com>

Tom> 	* thread-pool.cc (thread_pool::post_task): Update.
Tom> 	* thread-pool.h (class thread_pool) <post_task>: Take rvalue
Tom> 	reference to function.

I'm checking this in.

Tom


More information about the Gdb-patches mailing list