boostorg / thread

Boost.org thread module
http://boost.org/libs/thread
199 stars 161 forks source link

Remove racy checks #219

Closed thughes closed 6 years ago

thughes commented 6 years ago

These checks may or may not be true depending on how long it takes pt1/p1 to finish executing. You can verify this by adding a sleep before the check in which case "is_ready()" is always true.

My guess is this may have come from copy/paste from the when_all tests. I did not go through all when_any tests extremely thoroughly, so there might be other cases as well.