According to the C++ documentation on std::shared_ptr::use_count() function, the value returned is approximate in a multithreaded environment. Some tests are expecting an exact count, so adjust tests to allow the count to become correct within a specified amount of time.
According to the C++ documentation on
std::shared_ptr::use_count()
function, the value returned is approximate in a multithreaded environment. Some tests are expecting an exact count, so adjust tests to allow the count to become correct within a specified amount of time.