leapmotion / autowiring

A C++ Inversion of Control Framework
http://autowiring.io/
Apache License 2.0
148 stars 17 forks source link

Workaround approximate use_count in std::shared_ptr #1032

Closed gittyupagain closed 6 years ago

gittyupagain commented 6 years ago

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.