Use rvalue reference in thread_pool::post_task
authorTom Tromey <tromey@adacore.com>
Fri, 30 Apr 2021 16:04:56 +0000 (10:04 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 30 Apr 2021 16:04:56 +0000 (10:04 -0600)
commit698facb837c556b0e189b92563ec8bd4f2de373d
treee9bb1281cce15de55c73a53f5e9be0828139f99e
parent2869ac4b59d58caf736f216f7bc65377116bd5f7
Use rvalue reference in thread_pool::post_task

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

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

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