in loop(), the std::function is now reset after the task is executed
This commit is contained in:
parent
923680f44b
commit
caafcfbaf9
@ -195,5 +195,6 @@ void thread_pool::loop()
|
|||||||
queue.pop_front();
|
queue.pop_front();
|
||||||
}
|
}
|
||||||
fun();
|
fun();
|
||||||
|
fun = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user