提交 3d3d77a4 编写于 作者: J Jakob Progsch

trailing whitespaces

上级 c32e66f6
...@@ -69,15 +69,15 @@ auto ThreadPool::enqueue(F&& f, Args&&... args) ...@@ -69,15 +69,15 @@ auto ThreadPool::enqueue(F&& f, Args&&... args)
std::bind(std::forward<F>(f), std::forward<Args>(args)...) std::bind(std::forward<F>(f), std::forward<Args>(args)...)
); );
std::future<return_type> res = task->get_future(); std::future<return_type> res = task->get_future();
{ {
std::unique_lock<std::mutex> lock(queue_mutex); std::unique_lock<std::mutex> lock(queue_mutex);
tasks.push([task](){ (*task)(); }); tasks.push([task](){ (*task)(); });
} }
condition.notify_one(); condition.notify_one();
return res; return res;
} }
// the destructor joins all threads // the destructor joins all threads
inline ThreadPool::~ThreadPool() inline ThreadPool::~ThreadPool()
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册