Run clang-format
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
void thread_pool::run_pending_task()
|
||||
void
|
||||
thread_pool::run_pending_task()
|
||||
{
|
||||
function_wrapper task;
|
||||
if(work_queue.try_pop(task))
|
||||
{
|
||||
task();
|
||||
}
|
||||
else
|
||||
{
|
||||
std::this_thread::yield();
|
||||
}
|
||||
function_wrapper task;
|
||||
if (work_queue.try_pop(task)) {
|
||||
task();
|
||||
}
|
||||
else {
|
||||
std::this_thread::yield();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user