We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3814d4e commit e5a97ddCopy full SHA for e5a97dd
1 file changed
src/thread-pool.cpp
@@ -16,7 +16,7 @@ std::chrono::milliseconds task_result_t::wait()
16
17
// Make sure the result is not 0 so it is different than
18
// "no result yet".
19
- if (m_result.count() == 0) {
+ if (m_result == std::chrono::milliseconds::zero()) {
20
++m_result;
21
}
22
0 commit comments