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.
|
||||
*/
|
||||
void easyWakeAndWait() {
|
||||
if(SIZE >= 2) {
|
||||
if constexpr(SIZE >= 2) {
|
||||
wakeThreads();
|
||||
do {
|
||||
std::this_thread::sleep_for(std::chrono::microseconds(150));
|
||||
|
|
Loading…
Reference in a new issue