Skip to content

Commit e5a97dd

Browse files
committed
More direct check for zero-length duration
1 parent 3814d4e commit e5a97dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/thread-pool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ std::chrono::milliseconds task_result_t::wait()
1616

1717
// Make sure the result is not 0 so it is different than
1818
// "no result yet".
19-
if (m_result.count() == 0) {
19+
if (m_result == std::chrono::milliseconds::zero()) {
2020
++m_result;
2121
}
2222
}

0 commit comments

Comments
 (0)