Use "if constexpr" where possible in ThreadPool
This commit is contained in:
parent
0a7929b0a4
commit
56d7ddd3ba
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ public:
|
||||||
queued functions have been executed by the threads in the thread pool.
|
queued functions have been executed by the threads in the thread pool.
|
||||||
*/
|
*/
|
||||||
void easyWakeAndWait() {
|
void easyWakeAndWait() {
|
||||||
if(SIZE >= 2) {
|
if constexpr(SIZE >= 2) {
|
||||||
wakeThreads();
|
wakeThreads();
|
||||||
do {
|
do {
|
||||||
std::this_thread::sleep_for(std::chrono::microseconds(150));
|
std::this_thread::sleep_for(std::chrono::microseconds(150));
|
||||||
|
|
Loading…
Reference in a new issue