configure.ac: Check for the readline.h explicitly
[binutils-gdb.git] / gdbsupport / thread-pool.h
index b28b74647c5fe141aeb1b4744224bc44f11057c9..9bddaa9eaaed05331e5b16a3eaf5b893859b73b4 100644 (file)
@@ -58,7 +58,7 @@ public:
 
   /* Post a task to the thread pool.  A future is returned, which can
      be used to wait for the result.  */
-  std::future<void> post_task (std::function<void ()> func);
+  std::future<void> post_task (std::function<void ()> &&func);
 
 private: