mirror of
https://github.com/allankoechke/ThreadPool.git
synced 2026-12-02 09:13:48 +00:00
trailing whitespaces
This commit is contained in:
@@ -69,15 +69,15 @@ auto ThreadPool::enqueue(F&& f, 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)(); });
|
||||
}
|
||||
condition.notify_one();
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
// the destructor joins all threads
|
||||
inline ThreadPool::~ThreadPool()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user